mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix an error when initializing the cache (#1788)
* Fix a error when initializing the cache * Make context directory if it is not there in initialization
This commit is contained in:
		
				
					committed by
					
						 Nick O'Leary
						Nick O'Leary
					
				
			
			
				
	
			
			
			
						parent
						
							407e16e900
						
					
				
				
					commit
					1bf4addf63
				
			| @@ -143,7 +143,13 @@ LocalFileSystem.prototype.open = function(){ | ||||
|                     self.cache.set(scope,key,data[key]); | ||||
|                 }) | ||||
|             }); | ||||
|         }) | ||||
|         }).catch(function(err){ | ||||
|             if(err.code == 'ENOENT') { | ||||
|                 return fs.mkdir(self.storageBaseDir); | ||||
|             }else{ | ||||
|                 return Promise.reject(err); | ||||
|             } | ||||
|         }); | ||||
|     } else { | ||||
|         return Promise.resolve(); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user