Loading…
Loading…
The compiler never throws away the document over one bad line. It is forgiving by design: it always produces the best diagram it can and reports what it could not use, so a typo never leaves you with a blank canvas.
line N: … diagnostic.The example below has three problems: an unknown colour, an unknown shape, and a self-edge. The diagram still renders, and each problem reports underneath.
Server [chartreuse]
Cache [octahedron, blue]
Server -> Server
Server -> Cache
diagnostic · line 1: unknown attribute "chartreuse"
diagnostic · line 2: unknown attribute "octahedron"
diagnostic · line 3: self-edges are not drawn
An unknown word in an attribute list is dropped on its own; the words around it are still used. Here the colour survives even though the shape word is unknown.
Node [octahedron, blue, bold]
Other [rectangle, green]
Node -> Other
diagnostic · line 1: unknown attribute "octahedron"
Diagnostics come in two severities. A warning (amber) means something was ignored but the diagram is intact: an unknown word, a dropped self-edge. An error (red) means a whole line could not be parsed. Both surface in the code panel, keyed to the line, and neither stops the diagram from rendering.