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

Use lexer iterator to output error messages. #2986

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Feb 7, 2019

Replace calls to x.Errorf with calls to it.Item().Errorf where possible
so that the error messages outputed by the schema parser contain the
line and column numbers of where the error occurred.


This change is Reviewable

Replace calls to x.Errorf with calls to it.Item().Errorf where possible
so that the error messages outputed by the schema parser contain the
line and column numbers of where the error occurred.
@martinmr martinmr requested a review from a team February 7, 2019 23:27
Copy link
Contributor

@codexnull codexnull left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@martinmr martinmr merged commit 96dbecc into master Feb 8, 2019
@martinmr martinmr deleted the martinmr/schema-error-lines branch February 8, 2019 01:20
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
Replace calls to x.Errorf with calls to it.Item().Errorf where possible
so that the error messages outputed by the schema parser contain the
line and column numbers of where the error occurred.
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.

2 participants