child_process: fix order of args to errnoException()

This commit is contained in:
Thomas Shinnick 2011-11-28 13:30:48 -06:00 committed by Ben Noordhuis
parent a5c51b4858
commit eba1f7b1a4

View File

@ -440,7 +440,7 @@ ChildProcess.prototype.spawn = function(options) {
this._internal.close();
this._internal = null;
throw errnoException('spawn', errno);
throw errnoException(errno, 'spawn');
}
this.pid = this._internal.pid;