Fix missing catch for ETL exception

This commit is contained in:
Madeline Busig 2025-05-11 08:49:54 -07:00
parent 2142bb45a2
commit f3ed7c7dfb

View File

@ -80,6 +80,9 @@ int main(void) {
} catch (const mtl::exception&) { } catch (const mtl::exception&) {
mlog::info << "Failed to configure ruleset, caught exception" << endl; mlog::info << "Failed to configure ruleset, caught exception" << endl;
return 0; return 0;
} catch (const etl::exception& e) {
mlog::error << "Failed to configure ruleset, caught ETL exception" << endl;
return 0;
} }
size_t gen_num = 0; size_t gen_num = 0;
@ -95,8 +98,10 @@ int main(void) {
} }
} catch (etl::exception& e) { } catch (etl::exception& e) {
mlog::error << "Caught ETL exception: " << e.what() << endl; mlog::error << "Caught ETL exception: " << e.what() << endl;
return 0;
} catch (mtl::exception& e) { } catch (mtl::exception& e) {
mlog::error << "Caught MTL exception: " << e.id() << endl; mlog::error << "Caught MTL exception: " << e.id() << endl;
return 0;
} }
mlog::info << "Stepped " << gen.generation_num() << " generations" << mtl::endl; mlog::info << "Stepped " << gen.generation_num() << " generations" << mtl::endl;