mirror of
https://github.com/oppiliappan/statix.git
synced 2024-07-14 20:40:25 +03:00
handle duplicate args error
This commit is contained in:
parent
c1a6bdc42b
commit
f0267dfb72
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user