mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Report errors in string escape sequences more verbosely
This commit is contained in:
@@ -1098,8 +1098,15 @@ bool IfcFile::Init(IfcParse::IfcSpfStream* s) {
|
||||
MaxId = (std::max)(MaxId,currentId);
|
||||
currentId = 0;
|
||||
} else {
|
||||
try { token = tokens->Next(); }
|
||||
catch (... ) { token = NoneTokenPtr(); }
|
||||
try {
|
||||
token = tokens->Next();
|
||||
} catch (const IfcException& e) {
|
||||
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + ". Parsing terminated");
|
||||
token = NoneTokenPtr();
|
||||
} catch (...) {
|
||||
Logger::Message(Logger::LOG_ERROR, "Parsing terminated");
|
||||
token = NoneTokenPtr();
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! (token.startPos || token.lexer) ) break;
|
||||
|
||||
Reference in New Issue
Block a user