]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmdline-opts/gen.pl: return hard on errors
authorDaniel Stenberg <daniel@haxx.se>
Mon, 21 Dec 2020 14:30:56 +0000 (15:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 21 Dec 2020 21:39:26 +0000 (22:39 +0100)
... as the warnings tend to go unnoticed otherwise!

Closes #6354

docs/cmdline-opts/gen.pl

index 6a22ac95aeca04805f52b9ae2be2ecc18d67a2e4..ff358514a1de8ebcc883d4510fcc2b131eee30d1 100755 (executable)
@@ -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;
         }