mystor / rust-cpp

Embed C++ directly inside your rust code!
Apache License 2.0
802 stars 44 forks source link

Shorten the error message when the crate can't be parsed. #30

Closed ogoffart closed 6 years ago

ogoffart commented 6 years ago

Usually this happen because of a syntax error in the crate. When this happens, the real error will be shown in the next step while compiling the crate. However, this warning is so huge that it fills the console and hides the actual error. (It contains all the token of the crate.) Strip the very long error message coming from synom.

mystor commented 6 years ago

Thanks :-)