mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-30 13:07:52 +02:00
Include async stacktraces even on errors
This commit is contained in:
@ -30,7 +30,7 @@ fun Call.asObservableWithAsyncStacktrace(): Observable<Pair<Exception, Response>
|
||||
subscriber.onNext(asyncStackTrace to response)
|
||||
subscriber.onCompleted()
|
||||
}
|
||||
} catch (error: Exception) {
|
||||
} catch (error: Throwable) {
|
||||
if (!subscriber.isUnsubscribed) {
|
||||
subscriber.onError(error.withRootCause(asyncStackTrace))
|
||||
}
|
||||
|
Reference in New Issue
Block a user