Use a better error message for unsatisfied links in DiscordRPC.kt

This commit is contained in:
Username404 2021-07-18 19:10:30 +02:00
parent 1ccfba5c9e
commit 6775a85bf3
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}