[Previous] [Contents] [Next]


jade Error Messages


jade does its best to identify any errors it finds. Listing 19.2 shows an example of a set of output error messages.

Listing 19.2 jade Error Output
1:  jade:test.xml:7:0:E: DTD did not contain element
declaration for document type name
2:  jade:test.xml:9:5:E: element "test" undefined
3:  jade:test.xml:10:10:E: element "a" undefined
4:  jade:test.xml:11:7:E: ID "a1" already defined
5:  jade:test.xml:10:7: ID "a1" first defined here
6:  jade:test.xml:11:10:E: element "b" undefined
7:  jade:test.xml:12:2:E: required attribute "id" not specified
8:  jade:test.xml:12:2:E: element "b" undefined
9:  jade:test.xml:12:28:E: end tag for "b" omitted, but OMITTAG NO
was specified
10: jade:test.xml:12:0: start tag was here
11: jade:test.xml:12:28:E: end tag for "b" omitted, but OMITTAG NO
was specified
12: jade:test.xml:11:0: start tag was here
13: jade:test.xml:12:28:E: end tag for "a" omitted, but OMITTAG NO
was specified
14: jade:test.xml:10:0: start tag was here
15: jade:test.xml:12:28:E: end tag for "test" omitted, but OMITTAG NO
was specified
16: jade:test.xml:9:0: start tag was here



The error message (see Listing 19.2) gives
The program (usually jade in this case) that detected the error.
The name of the file containing the error.
The number of the line containing the error (this won't always be correct-sometimes it will be impossible for jade to correctly determine where the error started-but the description if the error will probably help you to localize it).
An error code: E for an error (processing will stop), W for a warning (processing will continue, but the output may be useless), I for an information message (you did something wrong, but this is just additional information; an information message often accompanies a warning message), X for an execution error (a serious problem has occurred with jade itself), and nothing (this indicates that something wrong was detected but it is not so serious as to interrupt processing).
The column (character) number. Again, this won't always be correct. Sometimes it will be impossible for jade to correctly determine where the error started, but the description of the error will probably help you to localize it.
A description of the error.

[Previous] [Contents] [Next]