This commit is contained in:
Thomas Krijnen
2017-08-01 16:45:11 +02:00
parent d10efe69cd
commit aa0a6aa5d1
12 changed files with 222 additions and 42 deletions
+4 -1
View File
@@ -322,6 +322,7 @@ int main(int argc, char** argv)
print_usage();
return EXIT_FAILURE;
} catch (...) {
std::cerr << "[Error] Unknown error parsing command line options\n\n";
print_usage();
return EXIT_FAILURE;
}
@@ -441,7 +442,9 @@ int main(int argc, char** argv)
rename_file(output_temp_filename, output_filename);
exit_code = EXIT_SUCCESS;
}
} catch (...) {}
} catch (const std::exception& e) {
Logger::Error(e);
}
write_log();
return exit_code;
}
+3 -1
View File
@@ -149,7 +149,9 @@ ptree& format_entity_instance(IfcUtil::IfcBaseEntity* instance, ptree& child, pt
boost::optional<std::string> value;
try {
value = format_attribute(argument, argument_type, qualified_name);
} catch (...) {}
} catch (const std::exception& e) {
Logger::Error(e);
}
if (value) {
if (as_link) {