mystor / rust-cpp

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

Forward the parsing error while parsing a module to the parent module #45

Closed ogoffart closed 5 years ago

ogoffart commented 5 years ago

Otherwise we just unwrap it and the error message is not good enough

ogoffart commented 5 years ago

I did not test enough what happens when there is an error in another module than the root module. I quickly noticed while developing on another crate that the error is not good enough.

(Would be great to have compilation error tests)

@mystor I guess this would qualify for a 0.15.1

ogoffart commented 5 years ago

I took the freedom to merge the pull request as it is quite simple.

I also made another small change.

I think this qualify for 0.15.1 as it improve error reporting.

mystor commented 5 years ago

published as 0.15.1

ogoffart commented 5 years ago

Thank you!