Include facet ID in panic message when nonempty outbound_handles at drop time

This commit is contained in:
Tony Garnock-Jones 2022-02-02 12:10:33 +01:00
parent 1244e416d0
commit 38a5279827
1 changed files with 2 additions and 1 deletions

View File

@ -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");