Skip to content

Commit

Permalink
Fix crash on slash commands Exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed Oct 19, 2021
1 parent fe2ba28 commit 364654b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/4261.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix crash on slash commands Exceptions
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 364654b

Please sign in to comment.