Skip to content

Commit

Permalink
Print cwd on unexpected failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tesujimath committed Jun 27, 2024
1 parent 7c9da71 commit f49ee53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,12 @@ fn is_expected_or_alt_path_ok(
actual.to_string_lossy()
);
}
Err(e) => panic!("f({:?}) failed unexpectedly: {:?}", path, e),
Err(e) => panic!(
"f({:?}) running in {:?} failed unexpectedly: {:?}",
path,
std::env::current_dir().unwrap(),
e
),
}
}

Expand Down

0 comments on commit f49ee53

Please sign in to comment.