diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 4287554ba2..35437546cd 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -167,6 +167,8 @@ namespace { IfcSchema::IfcProject* project = *projects->begin(); std::pair unit_info = k->initializeUnits(project->UnitsInContext()); unit_magnitude = unit_info.second; + } else { + Logger::Error("A single IfcProject is expected (encountered " + boost::lexical_cast(projects->size()) + "); unable to read unit information."); } // Set precision from file