]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commitdiff
Cleanup error status in vpnc-script-win.js
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 1 Jan 2022 16:40:46 +0000 (17:40 +0100)
committerDaniel Lenski <dlenski@gmail.com>
Tue, 25 Jan 2022 01:14:50 +0000 (17:14 -0800)
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 <dlenski@gmail.com>
vpnc-script-win.js

index 64ab610931e64ac98e3868e72e2eb9bc628efa5d..24e1ae7dca8164e54a790a4fdc4f99ee1808cc43 100644 (file)
@@ -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;