handle duplicate args error

This commit is contained in:
Akshay 2023-01-08 15:54:16 +05:30
parent c1a6bdc42b
commit f0267dfb72

View File

@ -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();