diff --git a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt index 5d9470f71..bd82bdda4 100644 --- a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesViewModel.kt @@ -24,9 +24,11 @@ class RssArticlesViewModel(application: Application) : BaseViewModel(application it?.let { App.db.rssArtivleDao().insert(*it.toTypedArray()) } + }.onError { + toast(it.localizedMessage) + }.onFinally { + onFinally() } - }.onFinally { - onFinally() } }