}
});
+ loadPromise.addErrback(function (e) {
+ node.stdio.writeError(e.message + "\n");
+ process.exit(1);
+ });
+
if (!parent) {
// root module
node.assert(requestedPath.charAt(0) == "/");
loadPromise.emitSuccess(self.target);
} else {
loadPromise.emitError(new Error("Error reading " + self.filename));
- process.exit(1);
}
});
};
catPromise.addErrback(function () {
loadPromise.emitError(new Error("Error reading " + self.filename));
- process.exit(1);
});
catPromise.addCallback(function (content) {