Skip to content

Commit

Permalink
Merge pull request #40 from pshevtsov/error-unwrap
Browse files Browse the repository at this point in the history
Use %w verb
  • Loading branch information
rverton committed Sep 25, 2020
2 parents 6b5bcaa + 60bd2d9 commit 6a5cd81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webanalyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (wa *WebAnalyzer) process(job *Job, appDefs *AppsDefinition) ([]Match, []st
} else {
resp, err := fetchHost(job.URL, wa.client)
if err != nil {
return nil, links, fmt.Errorf("Failed to retrieve: %v", err)
return nil, links, fmt.Errorf("Failed to retrieve: %w", err)
}

defer resp.Body.Close()
Expand Down

0 comments on commit 6a5cd81

Please sign in to comment.