return but shoudl still fail
This commit is contained in:
		
							parent
							
								
									12896dfb0f
								
							
						
					
					
						commit
						96236d7072
					
				
							
								
								
									
										
											BIN
										
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -48,7 +48,7 @@ async function write(directory: string, settings: string) { | ||||
|   const location = path.join(directory, SETTINGS_FILE); | ||||
|   console.log(`writing ${location} with options ${options}`); | ||||
|   try { | ||||
|     fs.writeFileSync(location, settings, options); | ||||
|     return fs.writeFileSync(location, settings, options); | ||||
|   } catch (e) { | ||||
|     if (e.code == fs.constants.O_EXCL) { | ||||
|       console.log(`overwriting existing file ${location}`); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user