mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-13 16:15:16 +00:00
arg name to be written upon duplicate kwargs error #4381
This commit is contained in:
parent
200390c1ab
commit
80116c768d
2 changed files with 4 additions and 4 deletions
|
@ -92,7 +92,7 @@ pub fn parse_args(func_args: Vec<FunctionArgument>) -> Result<ArgumentList, Lexi
|
|||
if let Some(keyword_name) = &name {
|
||||
if keyword_names.contains(keyword_name) {
|
||||
return Err(LexicalError {
|
||||
error: LexicalErrorType::DuplicateKeywordArgumentError,
|
||||
error: LexicalErrorType::DuplicateKeywordArgumentError(keyword_name.to_string()),
|
||||
location: start,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue