File: error-structuring.text

package info (click to toggle)
latexml 0.8.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,920 kB
  • sloc: xml: 109,048; perl: 30,224; sh: 179; javascript: 28; makefile: 13
file content (30 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Some initial thoughts on structuring error  & warning messages.

Proposed regexp:
  /^(Error|Warning|Fatal)(:\S*)*\s+(.*)$/

Eg.
  Error:undefined:\somemacro The macro \somemacro is undefined.
or
  Warning:mathparse:somerule Unrecognized pattern blah blah.


Try grepping for Error and Warning to generate a set of
useful keywords:

Error:unexpected:?  A <box> was supposed to be here
Error:unexpected:\else  Stray \else ...
Error:unexpected:?  Non-relation token
Error:unexpected:\endcsname

Error:unexpected:&

Error:missing_file:$path

Error:redefinition:\foo

Error:undefined:\foo

Error:cant_create:$file Couldn't create file

Warning:unexpected: