diff --git a/lib/child_process.js b/lib/child_process.js index ae414861a31..1eba363fdce 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -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;