Update network error message

This commit is contained in:
Koitharu
2022-12-09 18:32:10 +02:00
parent 1261a6790d
commit 24908e52af
2 changed files with 3 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ import org.koitharu.kotatsu.core.os.NetworkState
import org.koitharu.kotatsu.parsers.model.MangaPage
import org.koitharu.kotatsu.reader.domain.PageLoader
import org.koitharu.kotatsu.reader.ui.config.ReaderSettings
import org.koitharu.kotatsu.utils.ext.printStackTraceDebug
import java.io.File
import java.io.IOException
@@ -138,6 +139,7 @@ class PageHolderDelegate(
} catch (e: CancellationException) {
throw e
} catch (e: Throwable) {
e.printStackTraceDebug()
state = State.ERROR
error = e
callback.onError(e)

View File

@@ -7,7 +7,7 @@
<string name="favourites">Favourites</string>
<string name="history">History</string>
<string name="error_occurred">An error occurred</string>
<string name="network_error">Could not connect to the Internet</string>
<string name="network_error">Network error</string>
<string name="details">Details</string>
<string name="chapters">Chapters</string>
<string name="list">List</string>