@ -171,7 +171,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) {
waitDownloadSet.add(index)
} else {
AppLog.addLog(
"download ${book.name}-${chapterTitle} error:${error.localizedMessage}",
"下载${book.name}-${chapterTitle}失败\n${error.localizedMessage}",
error
)
error.printOnDebug()
@ -91,7 +91,7 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
CacheBook.start(context, book.bookUrl, book.durChapterIndex, endIndex)
}.onError(upTocPool) {
AppLog.addLog("${book.name} 更新目录失败 error: ${it.localizedMessage}", it)
AppLog.addLog("${book.name} 更新目录失败\n${it.localizedMessage}", it)
it.printOnDebug()
}.onFinally(upTocPool) {
synchronized(this) {