Revert "Remove warning message for unsupported related titles"
This reverts commit e5bf2de4bd.
This commit is contained in:
parent
1e34b95b51
commit
ff66c1c04e
1 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package eu.kanade.tachiyomi.source
|
||||
|
||||
import dev.icerock.moko.graphics.BuildConfig
|
||||
import eu.kanade.tachiyomi.source.model.FilterList
|
||||
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
|
|
@ -123,7 +124,17 @@ interface CatalogueSource : Source {
|
|||
) {
|
||||
runCatching { fetchRelatedMangaList(manga) }
|
||||
.onSuccess { if (it.isNotEmpty()) pushResults(Pair("", it), false) }
|
||||
.onFailure { e -> logcat(LogPriority.ERROR, e) { "## getRelatedMangaListByExtension: $e" } }
|
||||
.onFailure { e ->
|
||||
@Suppress("KotlinConstantConditions")
|
||||
if (BuildConfig.BUILD_TYPE == "release") {
|
||||
logcat(LogPriority.ERROR, e) { "## getRelatedMangaListByExtension: $e" }
|
||||
} else {
|
||||
throw UnsupportedOperationException(
|
||||
"Extension doesn't support site's related entries," +
|
||||
" please report an issue to Komikku."
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue