ircd:Ⓜ️:vm: Fix propagation of faults to evaluator as expected by opts mask.

This commit is contained in:
Jason Volk 2023-01-16 11:09:49 -08:00
parent a2b7c172c7
commit 336f740036
1 changed files with 1 additions and 16 deletions

View File

@ -254,7 +254,7 @@ ircd::m::vm::execute(eval &eval,
0UL
};
for(k = 0; k < j; ++k, ++eval.evaluated) try
for(k = 0; k < j; ++k, ++eval.evaluated)
{
const bool exists
(
@ -282,21 +282,6 @@ ircd::m::vm::execute(eval &eval,
if(likely(fault == fault::ACCEPT || exists))
handle_fault(opts, fault, event.event_id?: eval.event_id, string_view{});
}
catch(const ctx::interrupted &)
{
++eval.faulted;
throw;
}
catch(const std::exception &)
{
++eval.faulted;
continue;
}
catch(...)
{
++eval.faulted;
throw;
}
}
return fault::ACCEPT;