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

Enhance error messages #1884

Merged
merged 5 commits into from
Aug 15, 2017
Merged

Conversation

topecongiro
Copy link
Contributor

The current rustfmt only emits very dry error messages.
This PR attempts to improve it with more verbose error messages resembling those of rustc.

Screenshot

screenshot_20170815_164433

is_comment is set to true if the error happened inside comment.
line_buffer is the line which overflowed.
with rustc style
@nrc
Copy link
Member

nrc commented Aug 15, 2017

This is great, good idea!

@nrc nrc merged commit beb88ab into rust-lang:master Aug 15, 2017
@topecongiro topecongiro deleted the better-error-report branch August 16, 2017 05:13
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