From 977b1ebb8e08cb6933cea2f78ab50687dcd69da7 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 4 Jul 2014 01:50:06 +0000 Subject: Clean up messages related to missing arguments. * Do not warn about empty -column cells, they seem valid to me. * Downgrade empty item and missing -std from ERROR to WARNING. * Hierarchical naming. * Descriptive, not imperative style. * Mention macro names, argument names, and fallbacks. * Garbage collect some unreachable code in post_it(). --- read.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'read.c') diff --git a/read.c b/read.c index 8cc2d17f..e33ab915 100644 --- a/read.c +++ b/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.59 2014/07/03 23:24:56 schwarze Exp $ */ +/* $Id: read.c,v 1.60 2014/07/04 01:50:07 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -132,11 +132,13 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "conditional request controls empty scope", "skipping empty macro", "argument count wrong", - "missing display type", - "list type must come first", - "tag lists require a width argument", - "missing head in list item", + "missing display type, using -ragged", + "list type is not the first argument", + "missing -width in -tag list, using 8n", + "empty head in list item", + "empty list item", "missing font type", + "missing -std argument, adding it", /* related to bad macro arguments */ "skipping argument", @@ -190,10 +192,8 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "missing end of block", "scope open on exit", "uname(3) system call failed", - "macro requires body argument(s)", - "macro requires argument(s)", "request requires a numeric argument", - "missing list type", + "missing list type, using -item", "line argument(s) will be lost", "generic fatal error", -- cgit v1.2.3-56-ge451