mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-21 03:13:05 +08:00
Add information about line contents on parsing failure of wait_event_names.txt
The contents of the line whose parsing failed was not reported in the error message produced by generate-wait_event_types.pl, making harder than necessary the debugging of incorrectly-shaped entries in the file. Reported-by: Andres Freund Discussion: https://postgr.es/m/ZK9S3jFEV1X797Ll@paquier.xyz
This commit is contained in:
parent
183a60a628
commit
aea7fe33fb
@ -72,7 +72,7 @@ my @lines_sorted =
|
||||
# Read the sorted lines and populate the hash table
|
||||
foreach my $line (@lines_sorted)
|
||||
{
|
||||
die "unable to parse wait_event_names.txt"
|
||||
die "unable to parse wait_event_names.txt for line $line\n"
|
||||
unless $line =~ /^(\w+)\t+(\w+)\t+(\w+)\t+("\w.*\.")$/;
|
||||
|
||||
( my $waitclassname,
|
||||
|
Loading…
Reference in New Issue
Block a user