From f6ff42db4b975df7f2170a5d4be12cc7bbd99c2e 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 40867e5850..87e96e16d6 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:?}.") } }