Skip to content

Commit

Permalink
Don't swallow none 'MODULE_NOT_FOUND' errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Mar 21, 2015
1 parent b2107c5 commit 2371d22
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<a name"2.3.2"></a>
### 2.3.2 (2015-03-21)


#### Bug Fixes

* **client:** Bump UI to fix safari deprecated error messages - fix #445 ([6bb7513c](https://github.com/BrowserSync/browser-sync/commit/6bb7513c))


<a name"2.2.5"></a>
### 2.2.5 (2015-03-17)

Expand Down
5 changes: 4 additions & 1 deletion lib/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ module.exports = {
bs.registerPlugin(require(name), opts);

} catch (e) {
bs.logger.setOnce("useLevelPrefixes", true).error("Plugin {yellow:`%s`} was not found, did you forget to {cyan:npm install} it?", name);
if (e.code === "MODULE_NOT_FOUND") {
return bs.logger.setOnce("useLevelPrefixes", true).error("Plugin {yellow:`%s`} was not found, did you forget to {cyan:npm install} it?", name);
}
console.error(e);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"ua-parser-js": "^0.7.3"
},
"devDependencies": {
"bs-html-injector": "^1.3.0",
"bs-html-injector": "^1.5.2",
"chai": "^2.1.0",
"chalk": "^1.0.0",
"cli-color": "^0.3.2",
Expand Down

0 comments on commit 2371d22

Please sign in to comment.