mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 15:09:18 +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)
|
logcat(LogPriority.ERROR, e)
|
||||||
coroutineScope.launch {
|
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)
|
context.getString(R.string.no_chapters_error)
|
||||||
} else {
|
} else {
|
||||||
logcat(LogPriority.ERROR, e)
|
logcat(LogPriority.ERROR, e)
|
||||||
e.toString()
|
e.message.orEmpty().ifEmpty { e.toString() }
|
||||||
}
|
}
|
||||||
|
|
||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
|
Loading…
Reference in New Issue
Block a user