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

Triggers user friendly message on supergraph extracting errors more o… #1796

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

pcmanus
Copy link
Contributor

@pcmanus pcmanus commented Apr 28, 2022

…ften

When encountering errors while extract subgraphs from fed1 supergraph,
which can happen due to stricter fed2 validations, we were providing
an error message suggesting that user try fed2 composition, but that
message was only triggered for error thrown when validating the
extracted subgraph, but some error may be triggered earlier in the
extraction process.

This commit ensure that the try-catch we use to trigger that more
helpful error message is widenned to enclose all of the extraction
code.

@netlify
Copy link

netlify bot commented Apr 28, 2022

👷 Deploy request for apollo-federation-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 735c822

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 28, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

@benweatherman benweatherman left a comment

Choose a reason for hiding this comment

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

🐐

Sylvain Lebresne added 2 commits April 29, 2022 11:12
…ften

When encountering errors while extract subgraphs from fed1 supergraph,
which can happen due to stricter fed2 validations, we were providing
an error message suggesting that user try fed2 composition, but that
message was only triggered for error thrown when validating the
extracted subgraph, but some error may be triggered earlier in the
extraction process.

This commit ensure that the try-catch we use to trigger that more
helpful error message is widenned to enclose all of the extraction
code.
@pcmanus pcmanus merged commit 768cfad into apollographql:main Apr 29, 2022
This was referenced Apr 29, 2022
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