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

This commit is contained in:
link2xt
2026-09-10 19:09:56 +00:00
committed by l
parent 61d73433ea
commit 51b6d50a22
+2 -2
View File
@@ -1377,9 +1377,9 @@ impl InnerLogSink {
} }
} }
if is_error { if is_error {
panic!("Expected an error log.") panic!("Expected an error log {pat:?}.")
} else { } else {
panic!("Expected a warning log.") panic!("Expected a warning log {pat:?}.")
} }
} }