Don't show SourceNotInstalledException name in error snackbar
(cherry picked from commit 3c1608263601ecd900ff3b0093f41df7c92c91f6)
This commit is contained in:
parent
ff76335164
commit
304e3560fa
1 changed files with 1 additions and 1 deletions
|
|
@ -1649,7 +1649,7 @@ val chapterDecimalFormat = DecimalFormat(
|
|||
private val Throwable.snackbarMessage: String
|
||||
get() = when (val className = this::class.simpleName) {
|
||||
null -> message ?: ""
|
||||
"Exception", "HttpException", "IOException" -> message ?: className
|
||||
"Exception", "HttpException", "IOException", "SourceNotInstalledException" -> message ?: className
|
||||
else -> "$className: $message"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue