Merge pull request #7980 from deathbeam/catch-jvm-discord-jna-error
Catch JVM incompatible library JNA error when initializing Discord
This commit is contained in:
@@ -78,7 +78,7 @@ public class DiscordService implements AutoCloseable
|
||||
discordRPC = DiscordRPC.INSTANCE;
|
||||
discordEventHandlers = new DiscordEventHandlers();
|
||||
}
|
||||
catch (UnsatisfiedLinkError e)
|
||||
catch (Error e)
|
||||
{
|
||||
log.warn("Failed to load Discord library, Discord support will be disabled.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user