From ddad85a4e1d5633189fe9dd69e3a05e054d2bc53 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 10 Apr 2015 14:11:43 +0200 Subject: Improved error message if data is not allowed here --- src/core/parser/stack/DocumentHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/parser/stack/DocumentHandler.cpp b/src/core/parser/stack/DocumentHandler.cpp index 04f79fb..8d2088f 100644 --- a/src/core/parser/stack/DocumentHandler.cpp +++ b/src/core/parser/stack/DocumentHandler.cpp @@ -790,7 +790,9 @@ bool DocumentChildHandler::data() // this fact Variant text = readData(); if (defaultFields.empty()) { - logger().error("Got data, but structure \"" + name() + + logger().error("Got data, but field \"" + + field->getNameOrDefaultName() + + "\" of structure \"" + name() + "\" does not have any primitive field", text); } else { -- cgit v1.2.3