source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: When trying to edit an existing database with makewhatis(8) -d
@ 2016-08-22 16:15 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2016-08-22 16:15 UTC (permalink / raw)
  To: source

Log Message:
-----------
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@.

Modified Files:
--------------
    mdocml:
        mandocdb.c

Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v
retrieving revision 1.227
retrieving revision 1.228
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.227 -r1.228
--- mandocdb.c
+++ 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())
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-22 16:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22 16:15 mdocml: When trying to edit an existing database with makewhatis(8) -d schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).