From 41f393601155f987e273b2a177289e9b3deaecea Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 22 Aug 2016 16:15:26 +0000 Subject: When trying to edit an existing database with makewhatis(8) -d or -u but reading the database fails, report the full path to the database on standard error, and mention that the database is automatically recreated from scratch. Suggested by espie@. --- mandocdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mandocdb.c') diff --git a/mandocdb.c b/mandocdb.c index 16dda371..328abac7 100644 --- a/mandocdb.c +++ b/mandocdb.c @@ -448,10 +448,10 @@ mandocdb(int argc, char *argv[]) if (nodb == 0) dbprune(dba); } else { - /* - * Database missing or corrupt. - * Recreate from scratch. - */ + /* Database missing or corrupt. */ + say(MANDOC_DB, + "%s: Automatically recreating from scratch", + strerror(errno)); exitcode = (int)MANDOCLEVEL_OK; op = OP_DEFAULT; if (0 == treescan()) -- cgit