Skip to content

Add more context to Sentry errors #2304

@piyalbasu

Description

@piyalbasu

When some hooks throw errors, like fetchData in useAccountBalances, Sentry isn't receiving the Error's cause. The cause value needs to be concatenated into a string before sending to Sentry. Let's do that so we can have more context when a user runs into issues.

Related Slack alerts:
https://stellarfoundation.slack.com/archives/C06MNK4TC22/p1760216886397749?thread_ts=1759567751.576939&cid=C06MNK4TC22

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions