From: Daniel Stenberg Date: Mon, 21 Dec 2020 14:30:56 +0000 (+0100) Subject: cmdline-opts/gen.pl: return hard on errors X-Git-Tag: curl-7_75_0~190 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44c5e3901c6fd8344883f86e4d0c726ae6e2a10d;p=thirdparty%2Fcurl.git cmdline-opts/gen.pl: return hard on errors ... as the warnings tend to go unnoticed otherwise! Closes #6354 --- diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index 6a22ac95ae..ff358514a1 100755 --- a/docs/cmdline-opts/gen.pl +++ b/docs/cmdline-opts/gen.pl @@ -169,10 +169,12 @@ sub single { } elsif(/^---/) { if(!$long) { - print STDERR "WARN: no 'Long:' in $f\n"; + print STDERR "ERROR: no 'Long:' in $f\n"; + exit 1; } if(!$category) { - print STDERR "WARN: no 'Category:' in $f\n"; + print STDERR "ERROR: no 'Category:' in $f\n"; + exit 2; } last; }