error-chain icon indicating copy to clipboard operation
error-chain copied to clipboard

Error boilerplate for Rust

Results 69 error-chain issues
Sort by recently updated
recently updated
newest added
trafficstars

It's presently not serving much purpose.

help wanted
easy

When attempting to add a new variant to an existing `error_chain` `Error`, I found the following problem. I wanted to add an error that has no fields, and so I...

Moving [my comment from /r/rust](https://www.reddit.com/r/rust/comments/5ftgv5/starting_a_new_rust_project_right_with_errorchain/dap3znv/) here cause it seemed like the answers are probably useful enough to add to error-chain's docs. :} --- Can you provide some more info on...

The code (basing on the example from the readme) ``` rust #![recursion_limit = "1024"] #[macro_use] extern crate error_chain; mod errors { error_chain! { } } fn main () { use...

Hi, This pull request allows the use of the `log` crate with error chain. It extends `Result` and `Error` with functions to log the errors and their causes. Please let...

* Added crate feature `quickmain_log` When `quickmain_log` is enabled, the `quick_main!` entry point writes the terminating error chain to `log::error!` instead of stdout. Solves #165.

```rust foreign_links { Nom(::nom::IError); Io(::std::io::Error); ParseInt(::std::num::ParseIntError); } ``` ``` error[E0599]: no method named `cause` found for type `&nom::IError` in the current scope --> src/main.rs:56:5 | 56 | / error_chain! {...

One can't use the `link` functionality between two crates that use different versions of error-chain. (At the moment 0.10 and 0.11 being the commonest ones.) In my experience, it's the...

The reason I sought out this crate was because I wanted to do something like this: ``` ::url::ParseError => ::my_crate::errors::UrlParseError ::hyper::errors::UriError => ::my_crate::errors::UrlParseError ``` Unfortunately it doesn't seem like that's...

Hi, is it possible to get a reference to the description string in error_chain? I want to do the following for example: ```rust error_chain!{ errors { Foo(details: String) { description("foo...