Skip to content
Browse files

change setModuleSync's exception

  • Loading branch information...
1 parent d9dfdd6 commit 9e00493d7817ec9b939ae668cf1aa21f41702934 @tasogarepg committed
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) {

0 comments on commit 9e00493

Please sign in to comment.
Something went wrong with that request. Please try again.