From 732ee149bb4fb7b0e93a758e4e1c9b930ba9060b Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Fri, 12 Jul 2024 16:19:53 -0400 Subject: [PATCH] Tweak debug_assert message for parsed onion messages. More specific. --- lightning/src/onion_message/messenger.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/onion_message/messenger.rs b/lightning/src/onion_message/messenger.rs index 7445c3c4c..f44e3cb01 100644 --- a/lightning/src/onion_message/messenger.rs +++ b/lightning/src/onion_message/messenger.rs @@ -1588,7 +1588,7 @@ where None => None, Some(MessageContext::Offers(context)) => Some(context), Some(MessageContext::Custom(_)) => { - debug_assert!(false, "Shouldn't have triggered this case."); + debug_assert!(false, "Checked in peel_onion_message"); return } }; @@ -1615,7 +1615,7 @@ where None => None, Some(MessageContext::Custom(data)) => Some(data), Some(MessageContext::Offers(_)) => { - debug_assert!(false, "Shouldn't have triggered this case."); + debug_assert!(false, "Checked in peel_onion_message"); return } }; -- 2.39.5