mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/client/rooms/join: Exception handling around bootstrap eval.
This commit is contained in:
parent
8c7623ff99
commit
449f667dd9
1 changed files with 19 additions and 1 deletions
|
@ -453,7 +453,7 @@ catch(const std::exception &e)
|
|||
{
|
||||
log::error
|
||||
{
|
||||
join_log, "Bootstrap %s backfill @ %s from %s :%s",
|
||||
join_log, "join bootstrap %s backfill @ %s from %s :%s",
|
||||
string_view{room_id},
|
||||
string_view{event_id},
|
||||
string(host),
|
||||
|
@ -463,6 +463,7 @@ catch(const std::exception &e)
|
|||
|
||||
void
|
||||
bootstrap_eval_state(const json::array &state)
|
||||
try
|
||||
{
|
||||
m::vm::opts opts;
|
||||
opts.nothrows = -1;
|
||||
|
@ -474,9 +475,17 @@ bootstrap_eval_state(const json::array &state)
|
|||
state, opts
|
||||
};
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::error
|
||||
{
|
||||
join_log, "join bootstrap eval state :%s", e.what(),
|
||||
};
|
||||
}
|
||||
|
||||
void
|
||||
bootstrap_eval_auth_chain(const json::array &auth_chain)
|
||||
try
|
||||
{
|
||||
m::vm::opts opts;
|
||||
opts.infolog_accept = true;
|
||||
|
@ -486,6 +495,15 @@ bootstrap_eval_auth_chain(const json::array &auth_chain)
|
|||
auth_chain, opts
|
||||
};
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::error
|
||||
{
|
||||
join_log, "join bootstrap eval auth_chain :%s", e.what(),
|
||||
};
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
void
|
||||
bootstrap_eval_lazy_chain(const json::array &auth_chain)
|
||||
|
|
Loading…
Reference in a new issue