Skip to content

fix(app): enhance error handling by unwrapping SDK-wrapped errors in formatServerError#27061

Merged
nexxeln merged 3 commits into
anomalyco:devfrom
OpeOginni:fix/desktop-config-error
May 13, 2026
Merged

fix(app): enhance error handling by unwrapping SDK-wrapped errors in formatServerError#27061
nexxeln merged 3 commits into
anomalyco:devfrom
OpeOginni:fix/desktop-config-error

Conversation

@OpeOginni
Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #27060

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR properly unwraps the errors passed from the server to be able to get the cause and pass it to the user in the toast.

How did you verify your code works?

Tested with an invalid config and the toast was giving proper data on the issue. Also added a regression test to make sure that the body is always unwrapped from the error.

Screenshots / recordings

Screenshot 2026-05-12 at 14 06 57

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@OpeOginni OpeOginni requested a review from adamdotdevin as a code owner May 12, 2026 12:07
@OpeOginni OpeOginni marked this pull request as draft May 12, 2026 13:39
@OpeOginni OpeOginni marked this pull request as ready for review May 13, 2026 07:43
@nexxeln nexxeln changed the title feat(app): enhance error handling by unwrapping SDK-wrapped errors in formatServerError fix(app): enhance error handling by unwrapping SDK-wrapped errors in formatServerError May 13, 2026
Copy link
Copy Markdown
Member

@nexxeln nexxeln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nexxeln nexxeln merged commit 596f241 into anomalyco:dev May 13, 2026
10 checks passed
@OpeOginni OpeOginni deleted the fix/desktop-config-error branch May 13, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config Error on Desktop is Generic

2 participants