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

feat(command): Improve error output in console command #31

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

lukeraymonddowning
Copy link
Contributor

This PR alters the standard problem error output in the console to show a snippet of the GQL schema where the issue exists:

CleanShot 2023-04-07 at 14 22 17@2x

Previously, errors were shown in a table, but the line and column numbers displayed gave no real useful information because of how the GQL parser works. Now, instead of showing line numbers for a computed schema, we show the line that is causing the error along with surrounding lines for context.

@jeremynikolic
Copy link

Nice, thanks for looking into this @lukeraymonddowning 🚀

@lukeraymonddowning lukeraymonddowning merged commit 8b5fc8f into main Apr 11, 2023
@lukeraymonddowning lukeraymonddowning deleted the better_error_output branch April 11, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants