mirror of
https://github.com/mihonapp/mihon.git
synced 2025-01-30 18:23:23 +00:00
Log exception on invalid download directory issue
This commit is contained in:
parent
61a594493c
commit
1365d553a4
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ import kotlinx.coroutines.Dispatchers
|
|||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
import timber.log.Timber
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
|
||||
/**
|
||||
|
@ -55,6 +56,7 @@ class DownloadProvider(private val context: Context) {
|
|||
.createDirectory(getSourceDirName(source))
|
||||
.createDirectory(getMangaDirName(manga))
|
||||
} catch (e: NullPointerException) {
|
||||
Timber.w(e)
|
||||
throw Exception(context.getString(R.string.invalid_download_dir))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue