mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 21:13:19 -05:00
Don't show SourceNotInstalledException name in error snackbar
This commit is contained in:
parent
29aee68ec7
commit
3c16082636
1 changed files with 1 additions and 1 deletions
|
@ -1059,6 +1059,6 @@ val chapterDecimalFormat = DecimalFormat(
|
||||||
private val Throwable.snackbarMessage: String
|
private val Throwable.snackbarMessage: String
|
||||||
get() = when (val className = this::class.simpleName) {
|
get() = when (val className = this::class.simpleName) {
|
||||||
null -> message ?: ""
|
null -> message ?: ""
|
||||||
"Exception", "HttpException", "IOException" -> message ?: className
|
"Exception", "HttpException", "IOException", "SourceNotInstalledException" -> message ?: className
|
||||||
else -> "$className: $message"
|
else -> "$className: $message"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue