Skip to content

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

Draft
OpeOginni wants to merge 1 commit into
anomalyco:devfrom
OpeOginni:fix/desktop-config-error
Draft

feat(app): enhance error handling by unwrapping SDK-wrapped errors in formatServerError#27061
OpeOginni wants to merge 1 commit 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
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

1 participant