Localize "No chapters found" error

This commit is contained in:
arkon
2020-09-04 15:21:09 -04:00
parent 7a33e198dc
commit 66baf01e43
6 changed files with 30 additions and 9 deletions
@@ -28,7 +28,7 @@ fun syncChaptersWithSource(
source: Source
): Pair<List<Chapter>, List<Chapter>> {
if (rawSourceChapters.isEmpty()) {
throw Exception("No chapters found")
throw NoChaptersException()
}
val downloadManager: DownloadManager = Injekt.get()
@@ -0,0 +1,3 @@
package eu.kanade.tachiyomi.util.chapter
class NoChaptersException : Exception()