mirror of
https://github.com/git/git.git
synced 2026-08-05 23:51:27 +00:00
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:
3
cook
3
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);
|
||||
|
||||
Reference in New Issue
Block a user