mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 05:14:30 +00:00
Emit error messages on missing units
This commit is contained in:
@@ -167,6 +167,8 @@ namespace {
|
|||||||
IfcSchema::IfcProject* project = *projects->begin();
|
IfcSchema::IfcProject* project = *projects->begin();
|
||||||
std::pair<std::string, double> unit_info = k->initializeUnits(project->UnitsInContext());
|
std::pair<std::string, double> unit_info = k->initializeUnits(project->UnitsInContext());
|
||||||
unit_magnitude = unit_info.second;
|
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
|
// Set precision from file
|
||||||
|
|||||||
Reference in New Issue
Block a user