From 7c246ffc710b3f070dc9213ca7c78757f80e2c4e Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 31 Dec 2021 15:16:44 -0500 Subject: [PATCH] Add link to troubleshooting guide in library update error log file --- .../eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt | 2 ++ app/src/main/res/values/strings.xml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt index 564903302..eb467b875 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt @@ -552,6 +552,7 @@ class LibraryUpdateService( if (errors.isNotEmpty()) { val file = createFileInCacheDir("tachiyomi_update_errors.txt") file.bufferedWriter().use { out -> + out.write(getString(R.string.library_errors_help, ERROR_LOG_HELP_URL) + "\n\n") // Error file format: // ! Error // # Source @@ -577,3 +578,4 @@ class LibraryUpdateService( } private const val MANGA_PER_SOURCE_QUEUE_WARNING_THRESHOLD = 60 +private const val ERROR_LOG_HELP_URL = "https://tachiyomi.org/help/guides/troubleshooting" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f61650474..ccfe3f174 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -118,7 +118,7 @@ Reset Undo Open log - See full error details + Tap to see error details Create Restore Back @@ -732,6 +732,7 @@ Failed to update cover Please add the manga to your library before doing this + For help on how to fix library update errors, see %1$s Select cover image