diff --git a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt index b6e14d3c5..ec7a81c38 100644 --- a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt +++ b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt @@ -48,6 +48,9 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { } } } + .onError { + printLog(debugSource, -1, it.localizedMessage) + } } fun infoDebug(book: Book) { @@ -55,6 +58,9 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { .onSuccess { tocDebug(book) } + .onError { + printLog(debugSource, -1, it.localizedMessage) + } } private fun tocDebug(book: Book) { @@ -66,6 +72,9 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { } } } + .onError { + printLog(debugSource, -1, it.localizedMessage) + } } private fun contentDebug(book: Book, bookChapter: BookChapter) { @@ -75,5 +84,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { printLog(debugSource, 1000, it) } } + .onError { + printLog(debugSource, -1, it.localizedMessage) + } } } \ No newline at end of file