diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-08-22 16:12:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-08-22 16:12:53 +0000 |
commit | 8cff07480eeadfaac6dc3a06c134a68ccf8026ed (patch) | |
tree | d2ae126ab802e79fb1fc1c31d5a339e0e74dd4f2 /usr.bin | |
parent | a505e70d55955aea7fb923bd5ab6616b5d99133b (diff) |
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@.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/mandocdb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mandoc/mandocdb.c b/usr.bin/mandoc/mandocdb.c index 1e8274b3ed5..83c10d0c171 100644 --- a/usr.bin/mandoc/mandocdb.c +++ b/usr.bin/mandoc/mandocdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mandocdb.c,v 1.176 2016/08/17 20:46:06 schwarze Exp $ */ +/* $OpenBSD: mandocdb.c,v 1.177 2016/08/22 16:12:52 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2016 Ingo Schwarze <schwarze@openbsd.org> @@ -424,10 +424,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()) |