interledger / web-monetization-extension

An open-source browser extension that enables Web Monetization.
Apache License 2.0
72 stars 5 forks source link

refactor(ConnectWalletForm): preserve key in errors #641

Closed sidvishnoi closed 1 month ago

sidvishnoi commented 1 month ago

Earlier, we stored only localized message in errors[foo]. Now we preserve the key and original error under {info}; and add the localized message under {message}.

This will help with error handling based on key, and paves way to support retry add-key on retry-able errors (such as timed out waiting for login, wrong account was logged in, key-add consent accidentally declined etc.)

Part of https://github.com/interledger/web-monetization-extension/issues/613

github-actions[bot] commented 1 month ago

Extension builds preview

Name Link
Latest commit 15a52f20f666c922c41a689ead3f27ccc7c9ca8a
Latest job logs Run #11177902310
BadgeDownload
BadgeDownload