1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-21 12:34:51 +01:00

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