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/
[email protected]
# 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,