Don't show SourceNotInstalledException name in error snackbar

This commit is contained in:
arkon 2023-02-05 10:23:30 -05:00
parent 29aee68ec7
commit 3c16082636

View file

@ -1059,6 +1059,6 @@ 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"
}