Skip to content

Commit

Permalink
Properly print error in assert_no_err
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Aug 7, 2024
1 parent dd0de45 commit e5c1ec5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ macro_rules! assert_get_err {

#[macro_export]
macro_rules! assert_no_err {
($recv:expr) => {
assert!(dbg!(get_error($recv, None)).is_none());
};
($recv:expr) => {{
let err = get_error($recv, None);
assert!(err.is_none(), "{err:?}");
}};
}

fn gen_image_name() -> PathBuf {
Expand Down

0 comments on commit e5c1ec5

Please sign in to comment.