mirror of https://github.com/node-red/node-red.git
Fix ENOENT error in LocalFileSystem.clean()
This commit is contained in:
parent
16715673c3
commit
a835f9f0cb
|
@ -133,6 +133,12 @@ LocalFileSystem.prototype.clean = function(activeNodes){
|
|||
}
|
||||
return result;
|
||||
},[]));
|
||||
}).catch(function(err){
|
||||
if(err.code == 'ENOENT') {
|
||||
return when.resolve();
|
||||
}else{
|
||||
return when.reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue