diff options
| author | Julie Qiu <julie@golang.org> | 2021-07-07 22:24:56 -0700 |
|---|---|---|
| committer | Julie Qiu <julie@golang.org> | 2021-07-12 16:55:58 +0000 |
| commit | f29c1f55c6536fc08db52b293e4dbc4c95c9f97c (patch) | |
| tree | e3c2a6203bec9a4fd31d3be75ce81cb7412d405b /internal/stdlib | |
| parent | 3b383964cdc3ca71508116b48b4f629301461aec (diff) | |
| download | go-x-pkgsite-f29c1f55c6536fc08db52b293e4dbc4c95c9f97c.tar.xz | |
internal: derrors wrap Versions
The proxy and stdlib "Versions" functions are wrapped with derrors.Wrap
to make it easier to debug errors.
Change-Id: Ia9f8c9914b5d5495083f78521af66cf8aa63778f
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/333233
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/stdlib')
| -rw-r--r-- | internal/stdlib/stdlib.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/stdlib/stdlib.go b/internal/stdlib/stdlib.go index 57a20d7e..9d9e34e2 100644 --- a/internal/stdlib/stdlib.go +++ b/internal/stdlib/stdlib.go @@ -236,7 +236,7 @@ func getTestGoRepo(v string) (_ *git.Repository, err error) { // "goN.N.N", where N is a number) and beta or rc versions (tags of the forms // "goN.NbetaN" and "goN.N.NbetaN", and similarly for "rc" replacing "beta"). func Versions() (_ []string, err error) { - defer derrors.Wrap(&err, "Versions()") + defer derrors.Wrap(&err, "stdlib.Versions()") var refNames []plumbing.ReferenceName if UseTestData { |
