From 4a0ec2dbfb523848dce57f6c4cabcc84d79d14b1 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 29 Aug 2024 15:04:11 +0200 Subject: [PATCH] feat: report current_instance in DEADSEND messages --- src/instance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/instance.cpp b/src/instance.cpp index 4ee3a06..ae6d864 100644 --- a/src/instance.cpp +++ b/src/instance.cpp @@ -500,7 +500,8 @@ struct instance : std::enable_shared_from_this { 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(); }