fix: improve error handling for report message flow

Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
Infi 2023-08-30 02:53:01 +05:00
parent 3e9acb36eb
commit 5ede657f7e
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ fun ReportMessageDialog(
userAddedContext.value
)
state.value = ReportFlowState.Done
} catch (e: Exception) {
} catch (e: Error) {
state.value = ReportFlowState.Error
Log.e("ReportMessageDialog", "Failed to report message", e)
return@launch