mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Update FSPersistorManager.coffee
Using code 'ENOENT' for error checking instead of errno 34.
This commit is contained in:
parent
5bc89c3cbf
commit
408bf43b98
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue