diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-01 21:05:49 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-01 21:05:49 +0000 |
commit | fd5c6254f7f0752890880b0db1cd2ee064978980 (patch) | |
tree | 9ffd25d743e998ef7c65619a3e33b87dfb9e61ff /mandocdb.8 | |
parent | 7f80941fdc7809fe20393b3860aa144a325f8ddb (diff) | |
download | mandoc-fd5c6254f7f0752890880b0db1cd2ee064978980.tar.gz |
Fix mandocdb(8) to pass over the type when pruning the database. This
fixed `-d' perpetually adding the same files. While here, clean up the
code and document it. Remove -vv (complain if you want it back in).
Document the error messages in a DIAGNOSTICS section of mandocdb(8).
Diffstat (limited to 'mandocdb.8')
-rw-r--r-- | mandocdb.8 | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -86,9 +86,7 @@ from the database in .Ar dir without truncating it. .It Fl v -Verbose operation. -Use once to display all files added or removed and twice for keywords as -well. +Display all files added or removed to the index. .El .Pp If fatal parse errors are encountered while parsing, the offending file @@ -230,6 +228,26 @@ Such errors cause to exit at once, possibly in the middle of parsing or formatting a file. The output databases are corrupt and should be removed . .El +.Sh DIAGNOSTICS +If the following errors occur, the +.Nm +databases should be rebuilt. +.Bl -diag +.It "%s: Corrupt database" +The keyword database file indicated by +.Pa %s +is unreadable. +.It "%s: Corrupt index" +The index database file indicated by +.Pa %s +is unreadable. +.It "%s: Path too long" +The file +.Pa %s +is too long. +This usually indicates database corruption or invalid command-line +arguments. +.El .Sh SEE ALSO .Xr man 1 , .Xr btree 3 , |