Merge pull request #1738 from projectdiscovery/issue-1729-nil-crash

Fix for nil unexpected return value in workflow execution
dev
Sandeep Singh 2022-03-21 16:33:05 +05:30 committed by GitHub
commit 81f75ffb03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -357,6 +357,7 @@ func (r *Runner) RunEnumeration() error {
if r.issuesClient != nil {
r.issuesClient.Close()
}
if !results.Load() {
gologger.Info().Msgf("No results found. Better luck next time!")
}
@ -425,7 +426,7 @@ func (r *Runner) executeTemplatesInput(store *loader.Store, engine *core.Engine)
// 0 matches means no templates were found in directory
if templateCount == 0 {
return nil, errors.New("no valid templates were found")
return &atomic.Bool{}, errors.New("no valid templates were found")
}
// tracks global progress and captures stdout/stderr until p.Wait finishes