Permalink
Browse files

Error when a file is missing

  • Loading branch information...
1 parent d4cbda6 commit 0377d51ffe0c8f77e322e20995bd7cf7408fa0f5 @davglass davglass committed Sep 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/module.js
View
@@ -292,6 +292,9 @@ var buildJS = function (mod, name, callback) {
if (/file has not changed/.test(err)) {
log.warn(name + ': ' + err);
} else {
+ if (/ENOENT/.test(err)) {
+ log.error('Failed to open file: ' + err.path);
+ }
log.err(name + ': ' + err);
}
}

0 comments on commit 0377d51

Please sign in to comment.