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

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