mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-26 03:50:40 +01: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