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:
parent
837ee2e40d
commit
920c71560b
@ -429,7 +429,7 @@ class TimelineViewModel @Inject constructor(
|
||||
}
|
||||
response.body()?.map { Either.Right(it) } ?: listOf()
|
||||
} else {
|
||||
throw Exception(response.message())
|
||||
throw HttpException(response)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user