Add explicit error message

Unlike chat commands, failing silently is no longer "good" so, if an uncaught error travels back up the chain, it's best to tell the user something went wrong.
This commit is contained in:
NovaFox161
2021-10-06 16:53:14 -05:00
parent 6de0e5a1b4
commit 33f5d2608a

View File

@@ -32,7 +32,7 @@ class SlashCommandListener(applicationContext: ApplicationContext) {
}.doOnError {
LOGGER.error("Unhandled slash command error", it)
}.onErrorResume {
Mono.empty()
event.followupEphemeral("An unknown error has occurred. Please try again and/or contact DisCal support.")
}.then()
}
}