diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index d5fc6272d8..9e5e3e49d6 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -616,6 +616,7 @@ bool Ifc::Init(IfcParse::File* f) { units = unit_assignment->Units(); } if ( ! units ) return true; + try { for ( IfcUtil::IfcAbstractSelect::it it = units->begin(); it != units->end(); ++ it ) { const IfcUtil::IfcAbstractSelect::ptr base = *it; Ifc2x3::IfcSIUnit::ptr unit = Ifc2x3::IfcSIUnit::ptr(); @@ -646,6 +647,9 @@ bool Ifc::Init(IfcParse::File* f) { } } } + } catch ( IfcException ex ) { + Ifc::LogMessage("Error",ex.what()); + } return true; }