From 38a5279827fd35725e67bcf872ce9a024dace496 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Wed, 2 Feb 2022 12:10:33 +0100 Subject: [PATCH] Include facet ID in panic message when nonempty outbound_handles at drop time --- syndicate/src/actor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syndicate/src/actor.rs b/syndicate/src/actor.rs index b836b87..9a90856 100644 --- a/syndicate/src/actor.rs +++ b/syndicate/src/actor.rs @@ -2118,7 +2118,8 @@ impl Drop for Facet { } if !self.outbound_handles.is_empty() { - panic!("Internal error: outbound_handles not empty at drop time"); + panic!("Internal error: outbound_handles for {:?} not empty at drop time", + self.facet_id); } tracing::trace!(facet_id = ?self.facet_id, "Facet::drop");