From 408bf43b985bd5fdc3798b89a87f0e1a06c63160 Mon Sep 17 00:00:00 2001 From: c4live Date: Thu, 5 Jun 2014 16:01:38 +0200 Subject: [PATCH] Update FSPersistorManager.coffee Using code 'ENOENT' for error checking instead of errno 34. --- services/filestore/app/coffee/FSPersistorManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/filestore/app/coffee/FSPersistorManager.coffee b/services/filestore/app/coffee/FSPersistorManager.coffee index 992a9b25be..cbdad516d6 100644 --- a/services/filestore/app/coffee/FSPersistorManager.coffee +++ b/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()