throw HttpException instead of generic exception in TimelineViewModel (#2202)
This commit is contained in:
parent
837ee2e40d
commit
920c71560b
1 changed files with 1 additions and 1 deletions
|
@ -429,7 +429,7 @@ class TimelineViewModel @Inject constructor(
|
||||||
}
|
}
|
||||||
response.body()?.map { Either.Right(it) } ?: listOf()
|
response.body()?.map { Either.Right(it) } ?: listOf()
|
||||||
} else {
|
} else {
|
||||||
throw Exception(response.message())
|
throw HttpException(response)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue