diff --git a/src/node.js b/src/node.js index d83089f7c4..334d8c5ee5 100644 --- a/src/node.js +++ b/src/node.js @@ -379,16 +379,7 @@ exports.runMain = function() { // Load the main module--the command line argument. process.mainModule = new Module('.'); - try { - process.mainModule.load(process.argv[1]); - } catch (e) { - if (e.errno == lazyConstants().ENOENT) { - console.error("Cannot load '%s'", process.argv[1]); - process.exit(1); - } else { - throw e; - } - } + process.mainModule.load(process.argv[1]); }; // bootstrap repl