Add more info to error message

This commit is contained in:
Nick Rolfe
2020-10-29 15:13:04 +00:00
parent 11c9c18de4
commit 547d12ca58

View File

@@ -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;
}