Skip to content

Commit 6d4e722

Browse files
committed
error instead of panick
1 parent 4830fd3 commit 6d4e722

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parser/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10748,7 +10748,9 @@ impl<'a> Parser<'a> {
1074810748
pipe_operators.push(PipeOperator::OrderBy { exprs })
1074910749
}
1075010750
unhandled => {
10751-
unreachable!("`expect_one_of_keywords` further up allowed unhandled keyword: {unhandled:?}");
10751+
return Err(ParserError::ParserError(format!(
10752+
"`expect_one_of_keywords` further up allowed unhandled keyword: {unhandled:?}"
10753+
)))
1075210754
}
1075310755
}
1075410756
}

0 commit comments

Comments
 (0)