Skip to content

Commit

Permalink
hacking
Browse files Browse the repository at this point in the history
  • Loading branch information
g-r-a-n-t committed May 25, 2022
1 parent 2dedb4a commit 7660324
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/parser/src/grammar/expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,12 @@ fn infix_op(
if let Expr::Name(name) = func.kind {
Node::new(name, func.span)
} else {
panic!("shit")
par.fancy_error(
"failed to parse attribute expression",
vec![Label::primary(func.span, "expected a name")],
vec![],
);
return Err(ParseFailed);
}
},
},
Expand All @@ -471,7 +476,6 @@ fn infix_op(
)
}
_ => {
// panic!("shit");
par.fancy_error(
"failed to parse attribute expression",
vec![Label::primary(right.span, "expected a name")],
Expand Down

0 comments on commit 7660324

Please sign in to comment.