mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
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
Block a user