chore: wrap errors. (#1070)

This commit is contained in:
Ludovic Fernandez 2020-02-27 19:14:46 +01:00 committed by GitHub
commit 2da1ce06ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
114 changed files with 584 additions and 565 deletions

View file

@ -288,7 +288,7 @@ func goTool() (string, error) {
goBin, err := exec.LookPath("go" + exeSuffix)
if err != nil {
return "", fmt.Errorf("cannot find go tool: %v", err)
return "", fmt.Errorf("cannot find go tool: %w", err)
}
return goBin, nil