mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:13:42 +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 {
|
try {
|
||||||
entity_type = schema_->declaration_by_name(TokenFunc::asStringRef(token_stream[2]));
|
entity_type = schema_->declaration_by_name(TokenFunc::asStringRef(token_stream[2]));
|
||||||
} catch (const IfcException& ex) {
|
} 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;
|
goto advance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user