Print a warning if a category has no description.
This commit is contained in:
parent
8d4d0d5c3e
commit
c0a2428b05
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=6277
1 changed files with 8 additions and 0 deletions
|
@ -249,6 +249,14 @@ browse the following categories:\n";
|
|||
if ($category_description{$key}) {
|
||||
print MOUTF " -- " . $category_description{$key};
|
||||
}
|
||||
|
||||
# Someone forgot to add a category to the description file
|
||||
# or there is a typo in the category field.
|
||||
else {
|
||||
warn "No description found for category: ``$key''!\n";
|
||||
warn "Please fix me or send an E-Mail to doc\@FreeBSD.org\a\n";
|
||||
sleep(3);
|
||||
}
|
||||
print MOUTF "</LI>\n";
|
||||
|
||||
# Create the category file
|
||||
|
|
Loading…
Reference in a new issue