print parsing error messages in tests

This commit is contained in:
Folkert 2019-12-14 13:52:05 +01:00
parent e8d2fadc85
commit 4154805e23

View file

@ -161,10 +161,10 @@ pub fn can_expr_with(
Variable,
Constraint,
) {
let loc_expr = parse_loc_with(&arena, expr_str).unwrap_or_else(|_| {
let loc_expr = parse_loc_with(&arena, expr_str).unwrap_or_else(|e| {
panic!(
"can_expr_with() got a parse error when attempting to canonicalize:\n\n{:?}",
expr_str
"can_expr_with() got a parse error when attempting to canonicalize:\n\n{:?} {:?}",
expr_str, e
)
});