This is a lower, longer-term, spin-off off T137900. It would be nice to expose better warning mechanisms (e.g. via Lua or something) so this kind of thing can't happen again.
Warnings of interest that might require surfacing:
- JS/Lua page syntax errors
- lua transclusion module errors (Cite templates)
- wikicode syntax errors (linter ?)
- wikicode extensions errors (<ref> errors, missing <references/> tag, <syntaxhighlight> errors (unknown languages), <graph>, maps etc. Basically anything that adds an error tracking category
- parser function errors
There also seems a strong desire to surface these errors in preview mode, and make them surfaceable in articles (probably not by default) for experienced editors (wiki gnomes).