mirror of
https://github.com/curl/curl.git
synced 2026-07-23 10:57:18 +03: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
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue