Skip to content

Commit

Permalink
Log connection error
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
nkuba committed Nov 27, 2024
1 parent 254e90b commit 552990d
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 552990d

Please sign in to comment.