Skip to content

Commit f6ff42d

Browse files
committed
test: print which error/warning was expected if it does not arrive
1 parent 506a78b commit f6ff42d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/test_utils.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,9 +1377,9 @@ impl InnerLogSink {
13771377
}
13781378
}
13791379
if is_error {
1380-
panic!("Expected an error log.")
1380+
panic!("Expected an error log {pat:?}.")
13811381
} else {
1382-
panic!("Expected a warning log.")
1382+
panic!("Expected a warning log {pat:?}.")
13831383
}
13841384
}
13851385

0 commit comments

Comments
 (0)