瀏覽代碼

Log "Invalid download location" issues to error log

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

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

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