1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

cmdline-opts/gen.pl: return hard on errors

... as the warnings tend to go unnoticed otherwise!

Closes #6354
This commit is contained in:
Daniel Stenberg 2020-12-21 15:30:56 +01:00
parent a93c647de8
commit 44c5e3901c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -169,10 +169,12 @@ sub single {
} }
elsif(/^---/) { elsif(/^---/) {
if(!$long) { if(!$long) {
print STDERR "WARN: no 'Long:' in $f\n"; print STDERR "ERROR: no 'Long:' in $f\n";
exit 1;
} }
if(!$category) { if(!$category) {
print STDERR "WARN: no 'Category:' in $f\n"; print STDERR "ERROR: no 'Category:' in $f\n";
exit 2;
} }
last; last;
} }