From: Valentine Wallace Date: Fri, 12 Jul 2024 20:19:53 +0000 (-0400) Subject: Tweak debug_assert message for parsed onion messages. X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=732ee149bb4fb7b0e93a758e4e1c9b930ba9060b;p=rust-lightning Tweak debug_assert message for parsed onion messages. More specific. --- 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 } };