More helpful error when template fails to parse

Helps debug problems with templates, warns user that there's a template problem instead of a regex one