mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-05 00:28:56 +01:00
Avoid crashing if invalid download and backup location is set
Fixes #8252
This commit is contained in:
@@ -57,7 +57,7 @@ class DownloadProvider(private val context: Context) {
|
||||
.createDirectory(getMangaDirName(mangaTitle))
|
||||
} catch (e: Throwable) {
|
||||
logcat(LogPriority.ERROR, e) { "Invalid download directory" }
|
||||
throw Exception(context.getString(R.string.invalid_download_dir))
|
||||
throw Exception(context.getString(R.string.invalid_location, downloadsDir))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user