]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: add an Unwrap method on ImportMissingError
authorBryan C. Mills <bcmills@google.com>
Wed, 11 Sep 2019 13:51:17 +0000 (09:51 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 12 Sep 2019 14:09:30 +0000 (14:09 +0000)
commitc20eb96e6b990b455c73204a15489656106b1342
treec688e3cfad1dd97eb1c64be7505c9a3a3d9a6e8f
parent9a44023ce922407fe4e847400924e2b2980bd2c5
cmd/go/internal/modload: add an Unwrap method on ImportMissingError

Jay suggested this in CL 189780, and it seems semantically correct.

As far as I can tell this has no impact one way or the other right
now, but might prevent confusion (or at least give us more experience
with error handling!) in future changes.

Updates #30748
Updates #28459
Updates #30322

Change-Id: I5d7e9a08ea141628ed6a8fd03c62d0d3c2edf2bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/194817
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modload/import.go