gen_node_support.pl: improve error message for unclosed struct.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: eaf582806c0d6b19c081c5afecd9ddb7003e6f80
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2025-04-22T17:56:31Z
Releases: 18.0
gen_node_support.pl: improve error message for unclosed struct.

This error message was 'runaway "struct_name"', which isn't all
that clear; I think 'could not find closing brace for "struct_name"'
is better.  Also, provide the location of the struct start using the
script's usual '$file:$lineno' style.

Bug: #18901
Reported-by: Clemens Ruck <clemens.ruck@t-online.de>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/18901-424272abe01357e6@postgresql.org

Files

PathChange+/−
src/backend/nodes/gen_node_support.pl modified +4 −1

Discussion