Skip to content

Commit

Permalink
providercache: Improve installation error message (#31898)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Sep 29, 2022
1 parent 8c98e1f commit 196ff4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/providercache/package_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func installFromHTTPURL(ctx context.Context, meta getproviders.PackageMeta, targ

f, err := ioutil.TempFile("", "terraform-provider")
if err != nil {
return nil, fmt.Errorf("failed to open temporary file to download from %s", url)
return nil, fmt.Errorf("failed to open temporary file to download from %s: %w", url, err)
}
defer f.Close()
defer os.Remove(f.Name())
Expand Down

0 comments on commit 196ff4c

Please sign in to comment.