From 359d0170ab2c9925b0408f358285c9a1d98547e6 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 29 Dec 2009 20:31:56 +0100 Subject: [PATCH] Better error message on bad ARGV[1] --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index df1de92276..c6c3a6a39f 100644 --- a/src/node.js +++ b/src/node.js @@ -880,7 +880,7 @@ Module.prototype.loadScript = function (filename, loadPromise) { var catPromise = cat(filename, loadPromise); catPromise.addErrback(function () { - loadPromise.emitError(new Error("Error reading " + filename)); + loadPromise.emitError(new Error("Cannot read " + filename)); }); catPromise.addCallback(function (content) {