Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change setModuleSync's exception

  • Loading branch information...
commit 9e00493d7817ec9b939ae668cf1aa21f41702934 1 parent d9dfdd6
@tasogarepg authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/node-pages.js
View
8 lib/node-pages.js
@@ -84,13 +84,7 @@ Pages.prototype.isCached = function(name) {
Pages.prototype.setModuleSync = function(filePath) {
filePath = filePath || this.dstPath;
- var mdl = null;
- try {
- mdl = require(filePath);
- } catch(e) {
- throw new Error(filePath + "\n" + e.stack);
- }
- return mdl;
+ return require(filePath);
};
Pages.prototype.deleteModule = function(filePath) {
Please sign in to comment.
Something went wrong with that request. Please try again.