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

Better error reporting #33

Merged
merged 2 commits into from
Nov 19, 2017
Merged

Better error reporting #33

merged 2 commits into from
Nov 19, 2017

Conversation

mgeisler
Copy link
Owner

The syn crate does not preserve span information while parsing the
Rust code, so we no longer have access to accurate information about
where each attribute begins and ends.

This adds a simple heuristic: we simply search for html_root_url in
the source code and use that line in the error message.

The syn crate does not preserve span information while parsing the
Rust code, so we no longer have access to accurate information about
where each attribute begins and ends.

This adds a simple heuristic: we simply search for html_root_url in
the source code and use that line in the error message.
The error message from the syn crate is quite verbose. Simply
recompiling the crate with "cargo build" will give better and more
familiar output to the user.
@mgeisler mgeisler merged commit 16f031e into master Nov 19, 2017
@mgeisler mgeisler deleted the better-errors branch January 14, 2019 15:48
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.

1 participant