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.
This commit is contained in:
Junio C Hamano
2026-07-26 21:06:07 -07:00
parent 08a10c9b74
commit abe2305a84

3
cook
View File

@@ -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);