Update FSPersistorManager.coffee

Using code 'ENOENT' for error checking instead of errno 34.
This commit is contained in:
c4live 2014-06-05 16:01:38 +02:00
parent 5bc89c3cbf
commit 408bf43b98

View file

@ -60,7 +60,7 @@ module.exports =
filteredName = filterName name
fs.rmdir "#{location}/#{filteredName}", (err) ->
logger.err err:err, location:location, name:filteredName, "Error on rmdir."
if err and err.errno != 34
if err and err.code != 'ENOENT'
callback err
else
callback()