From 8c113f80f3e03b89207e1f606a533a1cbd39c345 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 10 Nov 2025 00:54:20 -0500 Subject: [PATCH] Make string matcher for libexpr texts like others Forgot to print in one case Co-authored-by: Aspen Smith --- src/libexpr-test-support/include/nix/expr/tests/libexpr.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libexpr-test-support/include/nix/expr/tests/libexpr.hh b/src/libexpr-test-support/include/nix/expr/tests/libexpr.hh index daae00802..658a6ffe0 100644 --- a/src/libexpr-test-support/include/nix/expr/tests/libexpr.hh +++ b/src/libexpr-test-support/include/nix/expr/tests/libexpr.hh @@ -104,6 +104,7 @@ MATCHER(IsAttrs, "") MATCHER_P(IsStringEq, s, fmt("The string is equal to \"%1%\"", s)) { if (arg.type() != nString) { + *result_listener << "Expected a string got " << arg.type(); return false; } return arg.string_view() == s;