Mark error for template syntax warning

dev
Ice3man543 2021-10-25 17:42:01 +05:30
parent 4a59c3dd84
commit ef3397b84d
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ func LoadTemplate(templatePath string, tagFilter *filter.TagFilter, extraTags []
}
if validationError := validateTemplateFields(template); validationError != nil {
stats.Increment(SyntaxErrorStats)
return false, validationError
}