Log "Invalid download location" issues to error log
(cherry picked from commit d421401626e1e0181ba662b17e228c3af8f24fd3)
This commit is contained in:
parent
828944950b
commit
348ef2cf0f
@ -53,8 +53,8 @@ class DownloadProvider(private val context: Context) {
|
||||
return downloadsDir
|
||||
.createDirectory(getSourceDirName(source))
|
||||
.createDirectory(getMangaDirName(manga))
|
||||
} catch (e: NullPointerException) {
|
||||
Timber.w(e)
|
||||
} catch (e: Throwable) {
|
||||
Timber.e(e, "Invalid download directory")
|
||||
throw Exception(context.getString(R.string.invalid_download_dir))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user