From c29ec0c3b7c188065a5c1be696c5704c86970762 Mon Sep 17 00:00:00 2001 From: Barry Tulchinsky Date: Fri, 20 Dec 2013 21:29:22 -0500 Subject: [PATCH] fix for issue 81 - error when utimes/futimes fails to queue/run --- src/fs.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fs.js b/src/fs.js index d5ad38d..a478b9b 100644 --- a/src/fs.js +++ b/src/fs.js @@ -1991,6 +1991,10 @@ define(function(require) { _utimes(context, path, atime, mtime, callback); } ); + + if (error) { + callback(error); + } }; FileSystem.prototype.futimes = function(fd, atime, mtime, callback) { callback = maybeCallback(callback); @@ -2001,6 +2005,10 @@ define(function(require) { _futimes(fs, context, fd, atime, mtime, callback); } ); + + if (error) { + callback(error); + } }; return FileSystem;