Improve stacktraces by not wrapping CDS exceptions in RuntimeExceptions.

This commit is contained in:
Cody Henthorne
2025-03-14 16:13:38 -04:00
parent ab2f3e7918
commit 0d133b8d1e
2 changed files with 2 additions and 4 deletions

View File

@@ -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) {