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

printError: fix padding of line numbers #1328

Merged
merged 3 commits into from
Apr 30, 2018

Conversation

IvanGoncharov
Copy link
Member

I noticed that if an error happens on the last line 9 lines string all line numbers are padded with extra space.
It's happening because the padding is calculated based on the size of next line number without checking if this line exists.

@leebyron leebyron merged commit 4ac4bf4 into graphql:master Apr 30, 2018
@leebyron
Copy link
Contributor

Nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants