From f1685b50e3d3ce9ebb41ccc5182ab2e15a290e02 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 15 Nov 2014 20:18:08 +0000 Subject: [PATCH] * use positive code to avoid issues with launch4j launcher --- source/net/filebot/cli/ArgumentProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/cli/ArgumentProcessor.java b/source/net/filebot/cli/ArgumentProcessor.java index e3d3b604..acf18900 100644 --- a/source/net/filebot/cli/ArgumentProcessor.java +++ b/source/net/filebot/cli/ArgumentProcessor.java @@ -125,9 +125,9 @@ public class ArgumentProcessor { } } - // script failed + // script failed with exception -> exit with non-zero exit code (and use positive code to avoid issues with launch4j launcher) CLILogger.finest("Failure (°_°)"); - return -1; + return 1; } public static class DefaultScriptProvider implements ScriptProvider {