version 1.58, 2014/06/23 22:03:03 |
version 1.59, 2014/08/08 16:25:15 |
|
|
.Pp |
.Pp |
.Dl $ mandoc \-Tman foo.mdoc \*(Gt foo.man |
.Dl $ mandoc \-Tman foo.mdoc \*(Gt foo.man |
.Sh DIAGNOSTICS |
.Sh DIAGNOSTICS |
Standard error messages reporting parsing errors are prefixed by |
Messages displayed by |
|
.Nm |
|
follow this format: |
.Pp |
.Pp |
.D1 Nm Ns : Ar file : Ns Ar line : Ns Ar column : level : |
.D1 Nm Ns : Ar file : Ns Ar line : Ns Ar column : level : message : macro args |
.Pp |
.Pp |
where the fields have the following meanings: |
Line and column numbers start at 1. |
.Bl -tag -width "column" |
Both are omitted for messages referring to an input file as a whole. |
.It Ar file |
Macro names and arguments are omitted where meaningless. |
The name of the input file causing the message. |
Fatal messages about invalid command line arguments |
.It Ar line |
or operating system errors, for example when memory is exhausted, |
The line number in that input file. |
may also omit the |
Line numbering starts at 1. |
.Ar file |
.It Ar column |
|
The column number in that input file. |
|
Column numbering starts at 1. |
|
If the issue is caused by a word, the column number usually |
|
points to the first character of the word. |
|
.It Ar level |
|
The message level, printed in capital letters. |
|
.El |
|
.Pp |
|
The |
|
.Ar line |
|
and |
and |
.Ar column |
.Ar level |
fields are omitted when meaningless. |
fields. |
.Pp |
.Pp |
Message levels have the following meanings: |
Message levels have the following meanings: |
.Bl -tag -width "warning" |
.Bl -tag -width "warning" |
|
|
option or |
option or |
.Fl T Ns Cm lint |
.Fl T Ns Cm lint |
output mode. |
output mode. |
.Pp |
|
The |
|
.Nm |
|
utility may also print messages related to invalid command line arguments |
|
or operating system errors, for example when memory is exhausted. |
|
Such messages may not carry the prefix described above. |
|
.Sh COMPATIBILITY |
.Sh COMPATIBILITY |
This section summarises |
This section summarises |
.Nm |
.Nm |