mirror of
https://github.com/github/codeql.git
synced 2026-02-19 16:33:40 +01:00
Add more info to error message
This commit is contained in:
@@ -234,7 +234,11 @@ impl Visitor<'_> {
|
||||
for (index, child_id) in child_ids.iter().enumerate() {
|
||||
if !*has_index && index > 0 {
|
||||
error!(
|
||||
"saw multiple occurrences of field that should occur at most once"
|
||||
"{}:{}: too many values for field: {}::{}",
|
||||
&self.path,
|
||||
node.start_position().row,
|
||||
node.kind(),
|
||||
&field.get_name()
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user