Meta/cook: make it slightly easier to debug

When the blurb pattern finds no match, the program only said that it does not match and died. It would be very hard to make it report that this and that token in the blurb text is misspelt and it would match the pattern when that typo gets fixed, but at least it should be able to dump the haystack it was looking for needles in to let the human user do the guessing.

Junio C Hamano committed Jul 26, 2026 at 21:06 UTC abe2305a84e022bfe560afb42ac10ffe7f717fae
1 file changed +3
cook
+3
@@ -716,6 +716,9 @@ sub update_issue {
716
717 my $btext = $cooking->{'topic_description'}{$blurb}{'text'};
718 if ($btext !~ s/\A$blurb_match//) {
719 + for my $line (split(/\n/, $btext)) {
720 + print STDERR ">>> $line\n";
721 + }
722 die "match pattern broken?";
723 }
724 my ($mon, $year, $issue, $dow, $date) = ($1, $2, $3, $4, $5);