Improve error handling in PlantUML directives generator

This commit is contained in:
Bartek Kryza
2023-05-09 19:20:07 +02:00
parent f3453b595d
commit 29a3a10ca8

View File

@@ -367,6 +367,15 @@ void generator<C, D>::generate_plantuml_directives(
LOG_ERROR("Failed to render PlantUML directive: \n{}\n due to: {}", LOG_ERROR("Failed to render PlantUML directive: \n{}\n due to: {}",
d, e.what()); d, e.what());
} }
catch (const std::regex_error &e) {
LOG_ERROR("Failed to render PlantUML directive: \n{}\n due to "
"std::regex_error: {}",
d, e.what());
}
catch (const std::exception &e) {
LOG_ERROR("Failed to render PlantUML directive: \n{}\n due to: {}",
d, e.what());
}
} }
} }