summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-21 15:30:56 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-21 22:39:26 +0100
commit44c5e3901c6fd8344883f86e4d0c726ae6e2a10d (patch)
treec7e87090c47f45315bb4079a918f8d8aeef31c68
parenta93c647de8634ddf958e075e0649182f349441b6 (diff)
downloadcurl-44c5e3901c6fd8344883f86e4d0c726ae6e2a10d.tar.gz
cmdline-opts/gen.pl: return hard on errors
... as the warnings tend to go unnoticed otherwise! Closes #6354
-rwxr-xr-xdocs/cmdline-opts/gen.pl6
1 files 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;
}