diff --git a/pkg/parsers/parser.go b/pkg/parsers/parser.go index 1c41e53a..f1b2851b 100644 --- a/pkg/parsers/parser.go +++ b/pkg/parsers/parser.go @@ -30,7 +30,7 @@ var ( func LoadTemplate(templatePath string, tagFilter *filter.TagFilter, extraTags []string, catalog catalog.Catalog) (bool, error) { template, templateParseError := ParseTemplate(templatePath, catalog) if templateParseError != nil { - return false, fmt.Errorf(CouldNotLoadTemplate, templatePath, templateParseError) + return false, ErrCouldNotLoadTemplate.Msgf(templatePath, templateParseError) } if len(template.Workflows) > 0 {