diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/source/online/OnlineSource.kt b/app/src/main/java/eu/kanade/tachiyomi/data/source/online/OnlineSource.kt index 0c87800983..fb1325a2cf 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/source/online/OnlineSource.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/source/online/OnlineSource.kt @@ -261,6 +261,9 @@ abstract class OnlineSource(context: Context) : Source { .newCall(pageListRequest(chapter)) .asObservable() .map { response -> + if (!response.isSuccessful) { + throw Exception("Webpage sent ${response.code()} code") + } mutableListOf().apply { pageListParse(response, this) if (isEmpty()) { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index 853ec7141a..15f6e72050 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -222,7 +222,7 @@ class ReaderActivity : BaseRxActivity() { fun onChapterError(error: Throwable) { Timber.e(error, error.message) finish() - toast(R.string.page_list_error) + toast(error.message) } fun onChapterAppendError() { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 55d4e71f57..1d8f621e04 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -252,7 +252,6 @@ Downloading… Downloaded %1$d%% Page: %1$d - Error fetching page list. Check your internet connection. Chapter %1$s Next chapter not found Previous chapter not found