From 9a7321ebb0f4b1bfbda06325f6ca2983b1187d13 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 31 Oct 2009 19:53:07 +0100 Subject: [PATCH] Don't call process.exit() on missing module. Just raise exception naturally. --- src/node.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/node.js b/src/node.js index 8fba233..b2f2699 100644 --- a/src/node.js +++ b/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; -- 2.7.4