Skip to content

fix(bitcoin-wallet-snap): Extract error messages from error objects - #179

Merged
FrederikBolding merged 4 commits into
mainfrom
fb/fix-badly-stringified-errors
Aug 20, 2026
Merged

fix(bitcoin-wallet-snap): Extract error messages from error objects#179
FrederikBolding merged 4 commits into
mainfrom
fb/fix-badly-stringified-errors

Conversation

@FrederikBolding

@FrederikBolding FrederikBolding commented Aug 20, 2026

Copy link
Copy Markdown
Member

Explanation

It seems that in some cases errors from the BDK end up in HandlerMiddleware that are plain objects with a message attached. The current logic doesn't account for these, but the getErrorMessage utility does. This PR adjusts the logic slightly.

References

https://metamask.sentry.io/issues/7669756811/?project=2299799&query=release%3A%22io.metamask%408.6.0%2B6401%22&referrer=release-issue-stream

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

@FrederikBolding FrederikBolding changed the title fix: Extract error messages from error objects fix(bitcoin-wallet-snap): Extract error messages from error objects Aug 20, 2026
@FrederikBolding
FrederikBolding marked this pull request as ready for review August 20, 2026 11:59
@FrederikBolding
FrederikBolding requested a review from a team as a code owner August 20, 2026 11:59
@FrederikBolding
FrederikBolding deployed to default-branch August 20, 2026 11:59 — with GitHub Actions Active
@FrederikBolding
FrederikBolding added this pull request to the merge queue Aug 20, 2026
Merged via the queue into main with commit 1ad216a Aug 20, 2026
93 of 95 checks passed
@FrederikBolding
FrederikBolding deleted the fb/fix-badly-stringified-errors branch August 20, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants