summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mandocdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mandocdb.c b/mandocdb.c
index fab09b0d..60eadc11 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -449,9 +449,9 @@ mandocdb(int argc, char *argv[])
dbprune(dba);
} else {
/* Database missing or corrupt. */
- say(MANDOC_DB,
- "%s: Automatically recreating from scratch",
- strerror(errno));
+ if (op != OP_UPDATE || errno != ENOENT)
+ say(MANDOC_DB, "%s: Automatically recreating"
+ " from scratch", strerror(errno));
exitcode = (int)MANDOCLEVEL_OK;
op = OP_DEFAULT;
if (0 == treescan())