test: print which error/warning was expected if it does not arrive

This commit is contained in:
link2xt
2026-09-04 11:29:45 +00:00
committed by l
parent 61d73433ea
commit 51b6d50a22

View File

@@ -1377,9 +1377,9 @@ impl InnerLogSink {
}
}
if is_error {
panic!("Expected an error log.")
panic!("Expected an error log {pat:?}.")
} else {
panic!("Expected a warning log.")
panic!("Expected a warning log {pat:?}.")
}
}