From d421401626e1e0181ba662b17e228c3af8f24fd3 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 11 Apr 2021 14:00:45 -0400 Subject: [PATCH] Log "Invalid download location" issues to error log --- .../eu/kanade/tachiyomi/data/download/DownloadProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt index 418332683..8083a7c1b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadProvider.kt +++ b/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)) } }