Skip to content

Commit

Permalink
Log connection error (#903)
Browse files Browse the repository at this point in the history
We are now logging connection errors to the console. This will help us
debug connection issues, as the error will be reported to Sentry.

We're handling only the `DEFAULT` error type, as the other types are
reported to the user in a modal.
  • Loading branch information
kkosiorowska authored Nov 28, 2024
2 parents 254e90b + 552990d commit cb3f90a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ export default function ConnectWalletButton({
},
onError: (error: OrangeKitError) => {
const errorData = orangeKit.parseOrangeKitConnectionError(error)

if (errorData === CONNECTION_ERRORS.DEFAULT) {
console.error("Failed to connect", error)
}

setConnectionError(errorData)
},
})
Expand Down

0 comments on commit cb3f90a

Please sign in to comment.