mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
Augment invalid entity message with offset in file
This commit is contained in:
@@ -1538,7 +1538,7 @@ void IfcFile::initialize_(IfcParse::IfcSpfStream* s) {
|
||||
try {
|
||||
entity_type = schema_->declaration_by_name(TokenFunc::asStringRef(token_stream[2]));
|
||||
} catch (const IfcException& ex) {
|
||||
Logger::Message(Logger::LOG_ERROR, ex.what());
|
||||
Logger::Message(Logger::LOG_ERROR, std::string(ex.what()) + " at offset " + std::to_string(token_stream[2].startPos));
|
||||
goto advance;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user