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 15:32:01 +0100
commit062f94311d1085ef8bd3fdf9fad21343852dc6eb (patch)
tree0f5bf37df6f90ae599c29ab082c31122aa218093
parentd13179db3e88ddcca087175e35332c2b04b08770 (diff)
downloadcurl-bagder/gen-fail-error.tar.gz
cmdline-opts/gen.pl: return hard on errorsbagder/gen-fail-error
... as the warnings tend to go unnoticed otherwise!
-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;
}