Browse Source

Better error message on bad ARGV[1]

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
359d0170ab
  1. 2
      src/node.js

2
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) {

Loading…
Cancel
Save