فهرست منبع

Update FSPersistorManager.coffee

Using code 'ENOENT' for error checking instead of errno 34.
c4live 12 سال پیش
والد
کامیت
408bf43b98
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      services/filestore/app/coffee/FSPersistorManager.coffee

+ 1 - 1
services/filestore/app/coffee/FSPersistorManager.coffee

@@ -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()