throw HttpException instead of generic exception in TimelineViewModel (#2202)

This commit is contained in:
Konrad Pozniak 2021-06-20 10:19:03 +02:00 committed by GitHub
parent 837ee2e40d
commit 920c71560b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -429,7 +429,7 @@ class TimelineViewModel @Inject constructor(
}
response.body()?.map { Either.Right(it) } ?: listOf()
} else {
throw Exception(response.message())
throw HttpException(response)
}
}