From 8bb71d8ac0bd7a74960960c4a78670d7b8a1498c Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 12 Jun 2016 18:23:36 +0800 Subject: [PATCH] Use standard exit codes --- source/net/filebot/Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index 31aa3e42..ee5f0175 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -80,7 +80,7 @@ public class Main { // clear cache must be called manually if (System.console() == null) { System.err.println("`filebot -clear-cache` has been disabled due to abuse."); - System.exit(-1); + System.exit(1); } // clear persistent user preferences @@ -169,7 +169,7 @@ public class Main { } catch (CmdLineException e) { // illegal arguments => print CLI error message System.err.println(e.getMessage()); - System.exit(-1); + System.exit(1); } catch (Throwable e) { // find root cause while (e.getCause() != null) { @@ -178,7 +178,7 @@ public class Main { // unexpected error => dump stack debug.log(Level.SEVERE, String.format("Error during startup: %s", e.getMessage()), e); - System.exit(-1); + System.exit(1); } }