mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Emit error messages on missing units
This commit is contained in:
@@ -167,6 +167,8 @@ namespace {
|
||||
IfcSchema::IfcProject* project = *projects->begin();
|
||||
std::pair<std::string, double> unit_info = k->initializeUnits(project->UnitsInContext());
|
||||
unit_magnitude = unit_info.second;
|
||||
} else {
|
||||
Logger::Error("A single IfcProject is expected (encountered " + boost::lexical_cast<std::string>(projects->size()) + "); unable to read unit information.");
|
||||
}
|
||||
|
||||
// Set precision from file
|
||||
|
||||
Reference in New Issue
Block a user