mirror of https://github.com/daffainfo/nuclei.git
dev
parent
a335e4962e
commit
4b43bd0c65
|
@ -30,7 +30,7 @@ var (
|
||||||
func LoadTemplate(templatePath string, tagFilter *filter.TagFilter, extraTags []string, catalog catalog.Catalog) (bool, error) {
|
func LoadTemplate(templatePath string, tagFilter *filter.TagFilter, extraTags []string, catalog catalog.Catalog) (bool, error) {
|
||||||
template, templateParseError := ParseTemplate(templatePath, catalog)
|
template, templateParseError := ParseTemplate(templatePath, catalog)
|
||||||
if templateParseError != nil {
|
if templateParseError != nil {
|
||||||
return false, fmt.Errorf(CouldNotLoadTemplate, templatePath, templateParseError)
|
return false, ErrCouldNotLoadTemplate.Msgf(templatePath, templateParseError)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(template.Workflows) > 0 {
|
if len(template.Workflows) > 0 {
|
||||||
|
|
Loading…
Reference in New Issue