Skip to content

Commit

Permalink
handle duplicate args error
Browse files Browse the repository at this point in the history
  • Loading branch information
oppiliappan committed Jan 8, 2023
1 parent c1a6bdc commit f0267df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ impl Report {
ParseError::UnexpectedEOF | ParseError::UnexpectedEOFWanted(_) => {
TextRange::empty(0u32.into())
}
ParseError::DuplicatedArgs(at, _) => at,
_ => panic!("report a bug, pepper forgot to handle a parse error"),
};
let mut message = err.to_string();
Expand Down

0 comments on commit f0267df

Please sign in to comment.