Skip to content

Commit 44c5e39

Browse files
committed
cmdline-opts/gen.pl: return hard on errors
... as the warnings tend to go unnoticed otherwise! Closes #6354
1 parent a93c647 commit 44c5e39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/cmdline-opts/gen.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,12 @@ sub single {
169169
}
170170
elsif(/^---/) {
171171
if(!$long) {
172-
print STDERR "WARN: no 'Long:' in $f\n";
172+
print STDERR "ERROR: no 'Long:' in $f\n";
173+
exit 1;
173174
}
174175
if(!$category) {
175-
print STDERR "WARN: no 'Category:' in $f\n";
176+
print STDERR "ERROR: no 'Category:' in $f\n";
177+
exit 2;
176178
}
177179
last;
178180
}

0 commit comments

Comments
 (0)