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