mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
cmdline-opts/gen.pl: return hard on errors
... as the warnings tend to go unnoticed otherwise! Closes #6354
This commit is contained in:
parent
a93c647de8
commit
44c5e3901c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user