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:
parent
a93c647de8
commit
44c5e3901c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user