Skip to content

Commit

Permalink
Nicer error messages when some tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Munksgaard committed Oct 21, 2020
1 parent a8c1d83 commit 81a47dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.rs
Expand Up @@ -227,7 +227,7 @@ mod test {
fn parse_exprs_helper(input: &str) -> Expr {
super::parse_exprs(
Parser::parse(Rule::expr, input)
.unwrap()
.unwrap_or_else(|e| panic!("{}", e))
.next()
.unwrap()
.into_inner(),
Expand Down

0 comments on commit 81a47dd

Please sign in to comment.