Try to use more standard exit codes

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2022-11-04 16:11:43 +00:00
parent 922220c11e
commit 4a2df30f92

View File

@ -160,7 +160,7 @@ public final class EntryPoint {
} catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException e) { } catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException e) {
LOGGER.log(Level.SEVERE, "Caught reflection exception from launcher", e); LOGGER.log(Level.SEVERE, "Caught reflection exception from launcher", e);
return ExitCode.REFLECTION_EXCEPTION; return ExitCode.ERROR;
} catch (Throwable e) { } catch (Throwable e) {
LOGGER.log(Level.SEVERE, "Exception caught from launcher", e); LOGGER.log(Level.SEVERE, "Exception caught from launcher", e);
@ -173,7 +173,7 @@ public final class EntryPoint {
} }
private enum ExitCode { 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; private final int numericalCode;