From 51b6d50a221fc916d54f4805dff0dbde0c5f681f Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 4 Sep 2026 11:29:45 +0000 Subject: [PATCH] test: print which error/warning was expected if it does not arrive --- src/test_utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test_utils.rs b/src/test_utils.rs index 40867e585..87e96e16d 100644 --- a/src/test_utils.rs +++ b/src/test_utils.rs @@ -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:?}.") } }