rust-lang-deprecated / error-chain

Error boilerplate for Rust
Apache License 2.0
729 stars 111 forks source link

`has_backtrace_depending_on_env` expects that crate would be built in debug mode #242

Closed ignatenkobrain closed 4 years ago

ignatenkobrain commented 6 years ago

When running test suite on Fedora I found that test is failing with:

    thread 'has_backtrace_depending_on_env' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 2, message: "No such file or directory" } }', src/libcore/result.rs:906:4

Looking in the code, it seems that it wants target/debug/* thing which is not what we have.

ignatenkobrain commented 6 years ago

We can do something like https://github.com/m4b/goblin/commit/7ba903ad760e27737807221e528380e474bc5b55....

But I don't really like such construction/.