Browse Source

Don't call process.exit() on missing module.

Just raise exception naturally.
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
9a7321ebb0
  1. 5
      src/node.js

5
src/node.js

@ -323,11 +323,6 @@ function loadModule (request, parent) {
// This is the promise which is actually returned from require.async()
var loadPromise = new process.Promise();
loadPromise.addErrback(function (e) {
process.stdio.writeError(e.message + "\n");
process.exit(1);
});
debug("loadModule REQUEST " + JSON.stringify(request) + " parent: " + JSON.stringify(parent));
var id, paths;

Loading…
Cancel
Save