mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-05 22:15:42 +03:00
Show proper Exception message in MangaScreen (#8900)
Show proper Exception message in MangaScreen.
This commit is contained in:
parent
82ea643c7d
commit
7329f03bc5
1 changed files with 3 additions and 2 deletions
|
@ -224,7 +224,8 @@ class MangaInfoScreenModel(
|
|||
|
||||
logcat(LogPriority.ERROR, e)
|
||||
coroutineScope.launch {
|
||||
snackbarHostState.showSnackbar(message = e.toString())
|
||||
val errorMessage = e.message.orEmpty().ifEmpty { e.toString() }
|
||||
snackbarHostState.showSnackbar(message = errorMessage)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -542,7 +543,7 @@ class MangaInfoScreenModel(
|
|||
context.getString(R.string.no_chapters_error)
|
||||
} else {
|
||||
logcat(LogPriority.ERROR, e)
|
||||
e.toString()
|
||||
e.message.orEmpty().ifEmpty { e.toString() }
|
||||
}
|
||||
|
||||
coroutineScope.launch {
|
||||
|
|
Loading…
Add table
Reference in a new issue