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:
parent
f355fb3135
commit
ab8667608b
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||
};
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue