mirror of https://github.com/daffainfo/nuclei.git
nil value check
parent
b26ebcfa60
commit
5eae7159c7
|
@ -359,9 +359,14 @@ func (r *Runner) RunEnumeration() error {
|
|||
|
||||
var results *atomic.Bool
|
||||
if r.options.AutomaticScan {
|
||||
results, err = r.executeSmartWorkflowInput(executerOpts, store, engine)
|
||||
if results, err = r.executeSmartWorkflowInput(executerOpts, store, engine); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
} else {
|
||||
results, err = r.executeTemplatesInput(store, engine)
|
||||
if results, err = r.executeTemplatesInput(store, engine); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if r.interactsh != nil {
|
||||
|
|
|
@ -81,7 +81,7 @@ func (c *Catalog) GetTemplatePath(target string) ([]string, error) {
|
|||
return nil, errors.Wrap(err, "could not find directory matches")
|
||||
}
|
||||
if len(matches) == 0 {
|
||||
return nil, errors.Errorf("no templates found in path")
|
||||
return nil, errors.Errorf("no templates found in path %s", absPath)
|
||||
}
|
||||
return matches, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue