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, Variable,
Constraint, 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!( panic!(
"can_expr_with() got a parse error when attempting to canonicalize:\n\n{:?}", "can_expr_with() got a parse error when attempting to canonicalize:\n\n{:?} {:?}",
expr_str expr_str, e
) )
}); });