From 92fe06f6589dcc21725c51b8f86051482bf3b1bd Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Sat, 1 Jan 2022 17:40:46 +0100 Subject: [PATCH] Cleanup error status in vpnc-script-win.js Either semicolon or parentheses The current error message is: "..." returned non-zero exit status: 1) It should be either: "..." returned non-zero exit status (1) or: "..." returned non-zero exit status: 1 I chose the latter. Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Signed-off-by: Daniel Lenski --- vpnc-script-win.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpnc-script-win.js b/vpnc-script-win.js index 64ab610..24e1ae7 100644 --- a/vpnc-script-win.js +++ b/vpnc-script-win.js @@ -72,7 +72,7 @@ function run(cmd) var exitCode = oExec.ExitCode; if (exitCode != 0) - echo(ERROR, "\"" + cmd + "\" returned non-zero exit status: " + exitCode + ")"); + echo(ERROR, "\"" + cmd + "\" returned non-zero exit status: " + exitCode); echo((exitCode != 0 ? ERROR : TRACE), " stdout+stderr dump: " + s); accumulatedExitCode += exitCode; -- 2.49.0