Skip to content

Commit

Permalink
callback with an error *message*
Browse files Browse the repository at this point in the history
  • Loading branch information
fictorial committed Apr 24, 2010
1 parent 34af442 commit d1fd01e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jefe.js
Expand Up @@ -259,7 +259,7 @@ Jefe.prototype._runRequestOnChild = function (request, childIndex) {
self.scriptStats[request.scriptName].killed++;
self.scriptStats[request.scriptName].killedTime++;

request.callback(new Error(exports.ERR_TOO_MUCH_TIME), null);
request.callback(exports.ERR_TOO_MUCH_TIME, null);
}, this.maxChildTime);
}

Expand Down Expand Up @@ -304,7 +304,7 @@ Jefe.prototype._runRequestOnChild = function (request, childIndex) {
self.scriptStats[request.scriptName].killed++;
self.scriptStats[request.scriptName].killedMem++;

request.callback(new Error(exports.ERR_TOO_MUCH_MEMORY), null);
request.callback(exports.ERR_TOO_MUCH_MEMORY, null);
}
});
}, memCheckInterval);
Expand Down

0 comments on commit d1fd01e

Please sign in to comment.