Improve failure message in test_error_messages

This commit is contained in:
Johannes Altmanninger 2024-01-20 11:28:14 +01:00
parent c52c03b03c
commit 87d434a98d

View file

@ -53,8 +53,10 @@ fn test_error_messages() {
assert!(res.is_err());
assert!(
string_matches_format(&errors[0].text, L!($error_text_format)),
"{}",
$src
"command '{}' is expected to match error pattern '{}' but is '{}'",
$src,
$error_text_format,
&errors[0].text
);
};
}