From 55e54f0b37858596a9da038ed7f20fb8536078c7 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 31 Aug 2025 16:01:28 +0200 Subject: [PATCH] Re-add token offset to failing declaration lookup in order to be picked up by validate.py --- src/ifcparse/IfcParse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index f314d223aa..595abe167b 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -729,7 +729,7 @@ void IfcParse::impl::in_memory_file_storage::load(unsigned entity_instance_name, context.push(simple_type_instance); simple_type_instance->file_ = file; } catch (IfcException& e) { - Logger::Message(Logger::LOG_ERROR, e.what()); + Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + " at offset " + std::to_string(next.startPos)); // #4070 We didn't actually capture an aggregate entry, undo length increment. return_value--; }