瀏覽代碼

Log exception on invalid download directory issue

arkon 4 年之前
父節點
當前提交
1365d553a4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt

+ 2 - 0
app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt

@@ -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))
         }
     }