=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.50 retrieving revision 1.53 diff -u -p -r1.50 -r1.53 --- mandoc/read.c 2014/06/20 23:02:31 1.50 +++ mandoc/read.c 2014/06/30 23:45:08 1.53 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.50 2014/06/20 23:02:31 schwarze Exp $ */ +/* $Id: read.c,v 1.53 2014/06/30 23:45:08 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -153,9 +153,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "bad escape sequence", "unterminated quoted string", - /* related to equations */ - "unexpected literal in equation", - "generic error", /* related to equations */ @@ -194,7 +191,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "request requires a numeric argument", "missing list type", "line argument(s) will be lost", - "body argument(s) will be lost", "generic fatal error", @@ -206,11 +202,12 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "child violates parent syntax", "argument count wrong, violates syntax", "NOT IMPLEMENTED: .so with absolute path or \"..\"", + ".so request failed", "no document prologue", "static buffer exhausted", /* system errors */ - "cannot open file", + NULL, "cannot stat file", "cannot read file", }; @@ -506,8 +503,12 @@ rerun: if (curp->secondary) curp->secondary->sz -= pos + 1; mparse_readfd(curp, -1, ln.buf + of); - if (MANDOCLEVEL_FATAL <= curp->file_status) + if (MANDOCLEVEL_FATAL <= curp->file_status) { + mandoc_vmsg(MANDOCERR_SO_FAIL, + curp, curp->line, pos, + ".so %s", ln.buf + of); break; + } pos = 0; continue; default: