Skip to content

Commit f0267df

Browse files
committed
handle duplicate args error
1 parent c1a6bdc commit f0267df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ impl Report {
108108
ParseError::UnexpectedEOF | ParseError::UnexpectedEOFWanted(_) => {
109109
TextRange::empty(0u32.into())
110110
}
111+
ParseError::DuplicatedArgs(at, _) => at,
111112
_ => panic!("report a bug, pepper forgot to handle a parse error"),
112113
};
113114
let mut message = err.to_string();

0 commit comments

Comments
 (0)