From 920c71560b5200d14daaf43a87f8c9032f437812 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 20 Jun 2021 10:19:03 +0200 Subject: [PATCH] throw HttpException instead of generic exception in TimelineViewModel (#2202) --- .../tusky/components/timeline/TimelineViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/timeline/TimelineViewModel.kt b/app/src/main/java/com/keylesspalace/tusky/components/timeline/TimelineViewModel.kt index 49655ad8..74ff7163 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/timeline/TimelineViewModel.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/timeline/TimelineViewModel.kt @@ -429,7 +429,7 @@ class TimelineViewModel @Inject constructor( } response.body()?.map { Either.Right(it) } ?: listOf() } else { - throw Exception(response.message()) + throw HttpException(response) } }