Skip to content

Commit aea7fe3

Browse files
committed
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
1 parent 183a60a commit aea7fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/activity/generate-wait_event_types.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
# Read the sorted lines and populate the hash table
7373
foreach my $line (@lines_sorted)
7474
{
75-
die "unable to parse wait_event_names.txt"
75+
die "unable to parse wait_event_names.txt for line $line\n"
7676
unless $line =~ /^(\w+)\t+(\w+)\t+(\w+)\t+("\w.*\.")$/;
7777

7878
( my $waitclassname,

0 commit comments

Comments
 (0)