Skip to content

Commit 3c23216

Browse files
committed
fix: preserve exception chain in FailedToSubmitBuyToServer
Pass `cause` through when wrapping gRPC errors so FlipcashBugsnagErrorCallback can unwrap to the underlying StatusException and correctly filter handled INTERNAL errors. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 3008d01 commit 3c23216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/flipcash/shared/onramp/deeplinks/src/main/kotlin/com/flipcash/app/onramp/PhantomWalletController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class PhantomWalletController @Inject constructor(
252252
signature = signature,
253253
).getOrElse { cause ->
254254
return@withContext Result.failure(
255-
DeeplinkOnRampError.FailedToSubmitBuyToServer(message = cause.message)
255+
DeeplinkOnRampError.FailedToSubmitBuyToServer(message = cause.message, cause = cause)
256256
)
257257
}
258258

0 commit comments

Comments
 (0)