From 3b2a3ad32414ef2ca261484ffb36337409385fea Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Sun, 19 Feb 2012 19:46:09 -0800 Subject: [PATCH] It is ok if the directory doesn't exist. --- node/utils/Minify.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/node/utils/Minify.js b/node/utils/Minify.js index 4f119b2d4..25de031a8 100644 --- a/node/utils/Minify.js +++ b/node/utils/Minify.js @@ -202,7 +202,11 @@ function statFile(filename, callback) { if (error.code == "ENOENT") { // Stat the directory instead. fs.stat(path.dirname(ROOT_DIR + filename), function (error, stats) { if (error) { - callback(error); + if (error.code == "ENOENT") { + callback(null, null, false); + } else { + callback(error); + } } else if (filename == 'js/require-kernel.js') { callback(null, stats.mtime.getTime(), true); } else {