Skip to content

Commit 547d12c

Browse files
committed
Add more info to error message
1 parent 11c9c18 commit 547d12c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extractor/src/extractor.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,11 @@ impl Visitor<'_> {
234234
for (index, child_id) in child_ids.iter().enumerate() {
235235
if !*has_index && index > 0 {
236236
error!(
237-
"saw multiple occurrences of field that should occur at most once"
237+
"{}:{}: too many values for field: {}::{}",
238+
&self.path,
239+
node.start_position().row,
240+
node.kind(),
241+
&field.get_name()
238242
);
239243
break;
240244
}

0 commit comments

Comments
 (0)