0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

ircd:Ⓜ️ panic on bootstrap error.

This commit is contained in:
Jason Volk 2019-07-14 14:21:16 -07:00
parent f355fb3135
commit ab8667608b

View file

@ -302,6 +302,7 @@ ircd::m::module_names_optional
void
ircd::m::init::bootstrap()
try
{
assert(dbs::events);
assert(db::sequence(*dbs::events) == 0);
@ -367,6 +368,13 @@ ircd::m::init::bootstrap()
log, "Bootstrap event generation completed nominally."
};
}
catch(const std::exception &e)
{
throw ircd::panic
{
"bootstrap error :%s", e.what()
};
}
///////////////////////////////////////////////////////////////////////////////
//