Error codes · Markup
PW5019
malformed_template_block
The program must hold to this: a template block closes with its own name and holds only the markers it takes.
The decisions behind it
Reading the diagnostic
pw check prints the code in brackets, [PW5019], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.