child_process: fix order of args to errnoException()
This commit is contained in:
parent
a5c51b4858
commit
eba1f7b1a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user