Fix missing catch for ETL exception
This commit is contained in:
parent
c220f7fe65
commit
2df802d207
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user