mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-27 13:13:43 +00:00
Improve stacktraces by not wrapping CDS exceptions in RuntimeExceptions.
This commit is contained in:
@@ -123,7 +123,7 @@ object ContactDiscoveryRefreshV2 {
|
||||
}
|
||||
|
||||
is NetworkResult.NetworkError -> throw result.exception
|
||||
is NetworkResult.ApplicationError -> throw RuntimeException("Unexpected exception", result.throwable)
|
||||
is NetworkResult.ApplicationError -> throw result.throwable
|
||||
}
|
||||
|
||||
return response.results[e164]?.let { item ->
|
||||
@@ -213,7 +213,7 @@ object ContactDiscoveryRefreshV2 {
|
||||
}
|
||||
|
||||
is NetworkResult.NetworkError -> throw result.exception
|
||||
is NetworkResult.ApplicationError -> throw RuntimeException("Unexpected exception", result.throwable)
|
||||
is NetworkResult.ApplicationError -> throw result.throwable
|
||||
}
|
||||
|
||||
if (!isPartialRefresh && SignalStore.misc.isCdsBlocked) {
|
||||
|
||||
Reference in New Issue
Block a user