mirror of
https://github.com/haraldh/chainerror.git
synced 2025-05-29 21:18:07 +02:00
more doc
This commit is contained in:
parent
e0c2eadae0
commit
4d2d807332
13 changed files with 115 additions and 5 deletions
|
@ -8,7 +8,8 @@ fn do_some_io() -> Result<(), Box<Error>> {
|
|||
}
|
||||
|
||||
fn func2() -> Result<(), Box<Error>> {
|
||||
do_some_io().map_err(mstrerr!("func2 error"))?;
|
||||
let filename = "foo.txt";
|
||||
do_some_io().map_err(mstrerr!("Error reading '{}'", filename))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue