Use standard exit codes

This commit is contained in:
Reinhard Pointner 2016-06-12 18:23:36 +08:00
parent 3258c83cfd
commit 8bb71d8ac0
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}