Revert "Remove warning message for unsupported related titles"

This reverts commit e5bf2de4bd.
This commit is contained in:
Cuong-Tran 2024-07-08 11:23:23 +07:00
parent 1e34b95b51
commit ff66c1c04e
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -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."
)
}
}
}
/**