Fix crash on slash commands Exceptions
This commit is contained in:
parent
fe2ba28441
commit
364654b685
|
@ -0,0 +1 @@
|
|||
Fix crash on slash commands Exceptions
|
|
@ -709,7 +709,7 @@ class TextComposerViewModel @AssistedInject constructor(
|
|||
val event = try {
|
||||
block()
|
||||
TextComposerViewEvents.SlashCommandResultOk
|
||||
} catch (failure: Exception) {
|
||||
} catch (failure: Throwable) {
|
||||
TextComposerViewEvents.SlashCommandResultError(failure)
|
||||
}
|
||||
_viewEvents.post(event)
|
||||
|
|
Loading…
Reference in New Issue