aboutsummaryrefslogtreecommitdiff
path: root/libraries/launcher/org/prismlauncher
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2022-11-04 16:11:43 +0000
committerTheKodeToad <TheKodeToad@proton.me>2022-11-08 16:37:27 +0000
commit4a2df30f92262304c63876c6428c81b70a2f4558 (patch)
tree728382ca8023a5d8e1d1169f3c237575d4f9a4cd /libraries/launcher/org/prismlauncher
parent922220c11e3081c6d3aaa6c664379ea398f1d67f (diff)
downloadPrismLauncher-4a2df30f92262304c63876c6428c81b70a2f4558.tar.gz
PrismLauncher-4a2df30f92262304c63876c6428c81b70a2f4558.tar.bz2
PrismLauncher-4a2df30f92262304c63876c6428c81b70a2f4558.zip
Try to use more standard exit codes
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'libraries/launcher/org/prismlauncher')
-rw-r--r--libraries/launcher/org/prismlauncher/EntryPoint.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/launcher/org/prismlauncher/EntryPoint.java b/libraries/launcher/org/prismlauncher/EntryPoint.java
index 875c14cd..0fa3691d 100644
--- a/libraries/launcher/org/prismlauncher/EntryPoint.java
+++ b/libraries/launcher/org/prismlauncher/EntryPoint.java
@@ -160,7 +160,7 @@ public final class EntryPoint {
} catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException e) {
LOGGER.log(Level.SEVERE, "Caught reflection exception from launcher", e);
- return ExitCode.REFLECTION_EXCEPTION;
+ return ExitCode.ERROR;
} catch (Throwable e) {
LOGGER.log(Level.SEVERE, "Exception caught from launcher", e);
@@ -173,7 +173,7 @@ public final class EntryPoint {
}
private enum ExitCode {
- NORMAL(0), ABORT(1), ERROR(2), ILLEGAL_ARGUMENT(3), REFLECTION_EXCEPTION(4);
+ NORMAL(0), ABORT(1), ERROR(2), ILLEGAL_ARGUMENT(65);
private final int numericalCode;