Skip to content

[Backport v8] Show the GraphQL error messages in the error dialog again - #6204

Open
VPS-thodax wants to merge 1 commit into
v8.x.xfrom
claude/backport-v8-graphql-error-dialog
Open

[Backport v8] Show the GraphQL error messages in the error dialog again#6204
VPS-thodax wants to merge 1 commit into
v8.x.xfrom
claude/backport-v8-graphql-error-dialog

Conversation

@VPS-thodax

@VPS-thodax VPS-thodax commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Backport of #6187 to v8.x.x.

Original description

Problem

When a request fails with a GraphQL error, the error dialog shows Unknown error instead of the actual message.

Cause

createErrorDialogApolloLink assigns error only in the networkError branch. The graphQLErrors branch sets errorType but never error, so the dialog falls back to "Unknown error".

Fix

The link passes the messages of all GraphQL errors to the dialog again. Network errors are unchanged, and GraphQL errors take precedence over an accompanying network error, as the guard intended.

Backport notes

  • Clean cherry-pick of 9731f9e onto v8.x.x, no conflicts.
  • Verified locally on v8.x.x: @comet/admin builds, lints (eslint/prettier/tsc) and its full test suite (68/68, including the 3 new regression tests) all pass.

Generated by Claude Code

`createErrorDialogApolloLink` only assigned the message of network errors,
so a pure GraphQL error left `error` undefined and the dialog fell back to
"Unknown error", hiding useful messages such as the message of a
`BadRequestException` thrown by the API.

The assignment was lost when the auth error conflicts were resolved while
merging main into next before v7 (20eb0fa).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MoiP6Lrf8kQPGkpkjT637B
@VPS-thodax VPS-thodax self-assigned this Aug 14, 2026
@VPS-thodax
VPS-thodax marked this pull request as ready for review August 14, 2026 08:38
@github-actions
github-actions Bot requested a review from VPS-Obi August 14, 2026 08:38
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