Permalink
Browse files

Improved worker err

  • Loading branch information...
1 parent 6d35a80 commit 61155de4fcbc9274aaccb5d239d109f2d50da69d @jfd committed Apr 28, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/worker.js
View
@@ -220,7 +220,10 @@ function startWorker(self) {
workererr = new WorkerError(self, stderrbuff);
stderrbuff = undefined;
} else if (code && !self._killsig && !("noerror" in options)) {
- workererr = new Error("Worker exited with error code " + code + " sig: " + signal + " parent: " + process.pid);
+ workererr = new Error("Worker " + self.pid +
+ " exited with error code " + code +
+ " sig: " + signal +
+ " parent: " + process.pid);
}
if ("keepalive" in options) {

0 comments on commit 61155de

Please sign in to comment.