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

Catch exceptions on rustc build errors #18

Merged
merged 1 commit into from
Apr 14, 2014
Merged

Catch exceptions on rustc build errors #18

merged 1 commit into from
Apr 14, 2014

Conversation

tomassedovic
Copy link
Contributor

Hey Corey, one more change if you don't mind.

When rustc fails to build a crate, cargo-lite spits out a traceback. So this catches the exception and prints out a nicer error message. Also, some tools (emacs, VS and Eclipse I think, and I'm sure vim can do it, too) are able to parse the gcc, clang, rustc, etc. error reports and do things like jumping to the offending line.

So I made the output compatible with that (the error: prefix before stdout was breaking it).

When rustc returned a nonzero code, an unhandled exception was raised.
This catches the exception and prints a human and tool-friendly report.
emberian added a commit that referenced this pull request Apr 14, 2014
@emberian emberian merged commit 18bc586 into emberian:master Apr 14, 2014
@emberian
Copy link
Owner

Thanks again!

@tomassedovic tomassedovic deleted the fix-traceback-on-build-errors branch April 14, 2014 20:49
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