Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Preserve Extensions in FormattedError during concurrent execution #706

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maakun12
Copy link

@maakun12 maakun12 commented Dec 5, 2024

When resolving fields concurrently, error extensions are lost in the error handling chain.
This happens because:

  1. The error is converted to FormattedError in completeThunkValueCatchingError through panic/recover flow
  2. In newLocatedError, the OriginalError is set to a new *gqlerrors.Error created from the FormattedError
  3. During FormatError, the extensions from the FormattedError are lost

@coveralls
Copy link

Coverage Status

coverage: 92.048%. remained the same
when pulling fcbd19e on maakun12:concurrent-error-extensions
into a546af7 on graphql-go:master.

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