Include async stacktraces even on errors
This commit is contained in:
parent
a978cb90e8
commit
0814439886
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user