mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/federation/send: Stop propagation and log EDU eval errors here.
This commit is contained in:
parent
1b49d001b2
commit
3a696636df
1 changed files with 15 additions and 0 deletions
|
@ -59,6 +59,7 @@ handle_edu(client &client,
|
|||
const m::resource::request::object<m::txn> &request,
|
||||
const string_view &txn_id,
|
||||
const m::edu &edu)
|
||||
try
|
||||
{
|
||||
m::event event;
|
||||
json::get<"origin"_>(event) = request.origin;
|
||||
|
@ -78,6 +79,20 @@ handle_edu(client &client,
|
|||
event, vmopts
|
||||
};
|
||||
}
|
||||
catch(const ctx::interrupted &)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::derror
|
||||
{
|
||||
m::log, "%s :%s EDU :%s",
|
||||
txn_id,
|
||||
request.origin,
|
||||
e.what(),
|
||||
};
|
||||
}
|
||||
|
||||
void
|
||||
handle_pdus(client &client,
|
||||
|
|
Loading…
Reference in a new issue