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

A rust-macro which makes errors easy to write

Results 20 quick-error issues
Sort by recently updated
recently updated
newest added

Hi! In the uutils/coreutils repository, we ran into this issue: https://github.com/uutils/coreutils/pull/3687. The minimum reproducible case is: ```rust quick_error! { #[derive(Debug)] enum Error { SomeError(s: String, err: io::Error) { context(s: String,...

Some people prefer ```rust enum { A, B, C, } ``` quick_error should support that style in the macro.

Hi, I've stumbled upon an error when I've tried to add conditional compilation to my quick_error defined Error enum. Here's an example: ```rust quick_error! { #[derive(Debug)] pub enum Error {...

This doesn't seem to work: ```rust quick_error! { pub(crate) enum FooError { ... } } ``` Would be great to have support for visibility modifiers :slightly_smiling_face:

It would be nice to implement display via direct access to the std::fmt::Formatter - as another option. This would allow additional logic inside the display logic without temporary buffers. Use...

```rust /// A page management error. enum Error { /// No clusters left in the freelist. /// /// This is the equivalent to OOM, but with disk space. OutOfClusters {...

Currently, `error-chain` uses `quick-error` by just copying the file to [`src/quick_error.rs`](https://github.com/brson/error-chain/blob/master/src/quick_error.rs), with #30 applied and removal of the [`Error` implementation](https://github.com/brson/error-chain/blob/master/src/quick_error.rs#L284-L330). That's not ideal since we have to copy the file...

All the traits you use are in `core` (except [Error](https://github.com/rust-lang/rust/issues/37905)), so it should be easy.

This would be useful mainly for adding doc comments ``` quick_error! { /// We can put comments here pub enum MyError { /// And we can put comments here MyVariant...