From 547d12ca58f8fc9503dabf24202230a2d11cd299 Mon Sep 17 00:00:00 2001 From: Nick Rolfe Date: Thu, 29 Oct 2020 15:13:04 +0000 Subject: [PATCH] Add more info to error message --- extractor/src/extractor.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extractor/src/extractor.rs b/extractor/src/extractor.rs index 8d98c61b04b..143aeccf8a8 100644 --- a/extractor/src/extractor.rs +++ b/extractor/src/extractor.rs @@ -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; }