From 44c5e3901c6fd8344883f86e4d0c726ae6e2a10d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 21 Dec 2020 15:30:56 +0100 Subject: [PATCH] cmdline-opts/gen.pl: return hard on errors ... as the warnings tend to go unnoticed otherwise! Closes #6354 --- docs/cmdline-opts/gen.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index 6a22ac95a..ff358514a 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; }