mirror of
https://github.com/oppiliappan/statix.git
synced 2024-08-17 05:00:24 +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(_) => {
|
ParseError::UnexpectedEOF | ParseError::UnexpectedEOFWanted(_) => {
|
||||||
TextRange::empty(0u32.into())
|
TextRange::empty(0u32.into())
|
||||||
}
|
}
|
||||||
|
ParseError::DuplicatedArgs(at, _) => at,
|
||||||
_ => panic!("report a bug, pepper forgot to handle a parse error"),
|
_ => panic!("report a bug, pepper forgot to handle a parse error"),
|
||||||
};
|
};
|
||||||
let mut message = err.to_string();
|
let mut message = err.to_string();
|
||||||
|
Loading…
Reference in New Issue
Block a user