update error messages when there's a template parse error, fixes #67