Move additional info about skipped manga to the top of the log

This commit is contained in:
Jays2Kings 2022-05-02 01:22:09 -04:00
parent 8aca07d5f4
commit 1921c6ad88

View file

@ -562,6 +562,7 @@ class LibraryUpdateService(
if (errors.isNotEmpty()) {
val file = createFileInCacheDir("tachiyomi_update_$fileName.txt")
file.bufferedWriter().use { out ->
additionalInfo?.let { out.write("$it\n") }
// Error file format:
// ! Error
// # Source
@ -576,7 +577,6 @@ class LibraryUpdateService(
}
}
}
additionalInfo?.let { out.write("\n$it") }
}
return file
}