Skip to content

Commit

Permalink
🔧 Log AMD Require Errors
Browse files Browse the repository at this point in the history
Closes #88
  • Loading branch information
felixrieseberg committed Aug 4, 2016
1 parent ad25b71 commit 9d0b30d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/resources/shim-footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
try {
return requireAMD.apply(null, arguments);
} catch (e) {
return requireNode.apply(null, arguments);
if (e.toString().includes('Error: Could not find module')) {
return requireNode.apply(null, arguments);
} else {
return console.error(e);
}
}
};
} else {
Expand Down

0 comments on commit 9d0b30d

Please sign in to comment.