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
index 55b0e14b9e..e9c573516d 100755
--- a/cook
+++ b/cook
@@ -716,6 +716,9 @@ sub update_issue {
my $btext = $cooking->{'topic_description'}{$blurb}{'text'};
if ($btext !~ s/\A$blurb_match//) {
+ for my $line (split(/\n/, $btext)) {
+ print STDERR ">>> $line\n";
+ }
die "match pattern broken?";
}
my ($mon, $year, $issue, $dow, $date) = ($1, $2, $3, $4, $5);