From eba1f7b1a49ac095f891a8b8477e5f286a862280 Mon Sep 17 00:00:00 2001 From: Thomas Shinnick Date: Mon, 28 Nov 2011 13:30:48 -0600 Subject: [PATCH] child_process: fix order of args to errnoException() --- lib/child_process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;