mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
print parsing error messages in tests
This commit is contained in:
parent
e8d2fadc85
commit
4154805e23
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue