feat: report current_instance in DEADSEND messages

This commit is contained in:
CJ van den Berg 2024-08-29 15:04:11 +02:00
parent f9704faa94
commit 4a0ec2dbfb
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -500,7 +500,8 @@ struct instance : std::enable_shared_from_this<instance> {
auto deadsend(const buffer &m, const ref &from) -> result {
if (current_instance and !current_instance->is_in_shutdown() and
!m("exit", type::more)) {
return to_error(exit_message("DEADSEND", m, ref_m(from)));
return to_error(
exit_message("DEADSEND", m, ref_m(from), ref_m(current_instance)));
}
return ok();
}