This commit is contained in:
Harald Hoyer 2018-12-20 15:14:21 +01:00
parent e0c2eadae0
commit 4d2d807332
13 changed files with 115 additions and 5 deletions

View file

@ -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(())
}