diff --git a/app/src/main/java/io/legado/app/model/CacheBook.kt b/app/src/main/java/io/legado/app/model/CacheBook.kt index a7f4517a8..cb228bd4a 100644 --- a/app/src/main/java/io/legado/app/model/CacheBook.kt +++ b/app/src/main/java/io/legado/app/model/CacheBook.kt @@ -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() diff --git a/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt b/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt index d09238e35..e9240002c 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainViewModel.kt @@ -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) {