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 {
|
val event = try {
|
||||||
block()
|
block()
|
||||||
TextComposerViewEvents.SlashCommandResultOk
|
TextComposerViewEvents.SlashCommandResultOk
|
||||||
} catch (failure: Exception) {
|
} catch (failure: Throwable) {
|
||||||
TextComposerViewEvents.SlashCommandResultError(failure)
|
TextComposerViewEvents.SlashCommandResultError(failure)
|
||||||
}
|
}
|
||||||
_viewEvents.post(event)
|
_viewEvents.post(event)
|
||||||
|
|
Loading…
Reference in New Issue