Today u can only `bail!` and `ensure!` error message (`&str`). I suggest adding the ability to return structs and enums that implement `Fail` trait. Today: ```rust bail!("error message"); ensure!(false, "error message"); ``` Could be: ```rust bail!(ErrorKind::SomeError); ensure!(false, ErrorKind::SomeError); ```
Today u can only
bail!andensure!error message (&str).I suggest adding the ability to return structs and enums that implement
Failtrait.Today:
Could be: