Skip to content

Commit

Permalink
change: Use getErrorString for UploadServerError types (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikclayton authored Jun 5, 2024
1 parent c5fe300 commit a2fa9f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ class ComposeActivity :
lifecycleScope.launch {
viewModel.uploadError.collect { throwable ->
if (throwable is UploadServerError) {
displayTransientMessage(throwable.errorMessage)
displayTransientMessage(throwable.getErrorString(this@ComposeActivity))
} else {
displayTransientMessage(
getString(R.string.error_media_upload_sending_fmt, throwable.getErrorString(this@ComposeActivity)),
Expand Down

0 comments on commit a2fa9f6

Please sign in to comment.