Skip to content

Commit d7e6a37

Browse files
committed
scripts/buildtable: Explain the problem for first Comments-URI mismatch
1 parent 8fc0e0d commit d7e6a37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/buildtable.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@
153153
}
154154
} elsif ($field eq 'Comments-URI') {
155155
if (not $found{'Comments-URI'}) {
156-
die unless $val eq sprintf('https://github.com/bitcoin/bips/wiki/Comments:BIP-%04d', $bipnum);
156+
my $first_comments_uri = sprintf('https://github.com/bitcoin/bips/wiki/Comments:BIP-%04d', $bipnum);
157+
die "First Comments-URI must be exactly \"$first_comments_uri\" in $fn" unless $val eq $first_comments_uri;
157158
}
158159
} elsif (exists $DateField{$field}) {
159160
die "Invalid date format in $fn" unless $val =~ /^20\d{2}\-(?:0\d|1[012])\-(?:[012]\d|30|31)$/;

0 commit comments

Comments
 (0)