Catch and log errors during initialize_settings()

This commit is contained in:
Thomas Krijnen
2026-06-17 18:23:19 +02:00
parent 1e91eebf51
commit 855de34d22
+6 -1
View File
@@ -45,6 +45,11 @@ ifcopenshell::geometry::abstract_mapping* ifcopenshell::geometry::impl::MappingF
throw IfcParse::IfcException("No geometry mapping registered for " + schema_name_lower);
}
auto new_mapping = it->second(file, s, logger);
new_mapping->initialize_settings();
try {
new_mapping->initialize_settings();
} catch (const std::exception& e) {
logger.Error("GEO", 400, e);
logger.Error("GEO", 401, "Unable to initialize conversion settings");
}
return new_mapping;
}