Use a better error message for unsatisfied links in DiscordRPC.kt
This commit is contained in:
parent
1ccfba5c9e
commit
6775a85bf3
|
@ -23,7 +23,7 @@ object DiscordRPC: ButtonImpl() {
|
|||
discord_rpc.discordInitialize("839058922102849538", RPCHandlers, true)
|
||||
Runtime.getRuntime().addShutdownHook(Thread { discord_rpc.discordShutdown() })
|
||||
} catch (e: UnsatisfiedLinkError) {
|
||||
Snowy.logs.error("Could not initialize DiscordRPC; the feature will therefore be disabled.")
|
||||
Snowy.logs.error("Could not initialize DiscordRPC because the needed libraries are not present on your operating system; the feature will therefore be disabled.")
|
||||
isDisabled = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue