mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-21 12:11:50 +01:00
Show proper Exception message in MangaScreen (#8900)
Show proper Exception message in MangaScreen.
This commit is contained in:
parent
82ea643c7d
commit
7329f03bc5
@ -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…
Reference in New Issue
Block a user