fix: improve error handling for report message flow
Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
parent
3e9acb36eb
commit
5ede657f7e
|
|
@ -250,7 +250,7 @@ fun ReportMessageDialog(
|
||||||
userAddedContext.value
|
userAddedContext.value
|
||||||
)
|
)
|
||||||
state.value = ReportFlowState.Done
|
state.value = ReportFlowState.Done
|
||||||
} catch (e: Exception) {
|
} catch (e: Error) {
|
||||||
state.value = ReportFlowState.Error
|
state.value = ReportFlowState.Error
|
||||||
Log.e("ReportMessageDialog", "Failed to report message", e)
|
Log.e("ReportMessageDialog", "Failed to report message", e)
|
||||||
return@launch
|
return@launch
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue