]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Tweak debug_assert message for parsed onion messages.
authorValentine Wallace <vwallace@protonmail.com>
Fri, 12 Jul 2024 20:19:53 +0000 (16:19 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Thu, 12 Sep 2024 15:16:03 +0000 (11:16 -0400)
More specific.

lightning/src/onion_message/messenger.rs

index 7445c3c4c0b0e966e4e5457f2c35d7ce295f8c18..f44e3cb018d3c1b1bb67bbee4f98c654097872d5 100644 (file)
@@ -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
                                                        }
                                                };