We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb3c0a commit d2a2c73Copy full SHA for d2a2c73
src/main/java/com/eternalcode/discordapp/DiscordApp.java
@@ -89,12 +89,11 @@ private void start() {
89
90
Runtime.getRuntime().addShutdownHook(new Thread(this::shutdown));
91
LOGGER.info("Discord Application started successfully!");
92
- Thread.sleep(Long.MAX_VALUE);
93
}
94
catch (Exception exception) {
95
LOGGER.error("Failed to start Discord Application", exception);
96
Sentry.captureException(exception);
97
- System.exit(1);
+ throw new IllegalStateException("Discord Application startup failed", exception);
98
99
100
0 commit comments