mirror of
https://github.com/haraldh/chainerror.git
synced 2025-05-30 21:48:06 +02:00
more doc
This commit is contained in:
parent
e0c2eadae0
commit
4d2d807332
13 changed files with 115 additions and 5 deletions
|
@ -1,3 +1,13 @@
|
|||
## Saving coding chars
|
||||
|
||||
Because decorating an error with more information should not
|
||||
let you jump through hoops, `chainerror` has a quick macro for that.
|
||||
|
||||
`mstrerror!()` fits right into `.map_err()` letting you quickly add
|
||||
more debug strings.
|
||||
|
||||
`mstrerror!()` even understands `format!()` syntax like `println!()`.
|
||||
|
||||
~~~rust
|
||||
use crate::chainerror::*;
|
||||
{{#include ../examples/tutorial4.rs:2:}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue