Don't show SourceNotInstalledException name in error snackbar

(cherry picked from commit 3c1608263601ecd900ff3b0093f41df7c92c91f6)
This commit is contained in:
arkon 2023-02-05 10:23:30 -05:00 committed by Jobobby04
parent ff76335164
commit 304e3560fa

View File

@ -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"
}