forked from coolaj86/goldilocks.js
		
	fixed bug reading non-existant config files
This commit is contained in:
		
							parent
							
								
									c9318b65b0
								
							
						
					
					
						commit
						de3977d1e4
					
				@ -43,7 +43,7 @@ function createStorage(filename, filetype) {
 | 
			
		||||
  function read() {
 | 
			
		||||
    return fs.readFileAsync(filename).then(parse).catch(function (err) {
 | 
			
		||||
      if (err.code === 'ENOENT') {
 | 
			
		||||
        return '';
 | 
			
		||||
        return {};
 | 
			
		||||
      }
 | 
			
		||||
      return PromiseA.reject(err);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user