]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go/internal/load: use setLoadPackageDataError in loadImport
authorBryan C. Mills <bcmills@google.com>
Tue, 23 Mar 2021 15:57:36 +0000 (11:57 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 25 Mar 2021 03:19:56 +0000 (03:19 +0000)
commit4889afe8f82433599a38b74808eb572f972d4ff9
tree70191395126d5dfbdf6fdad8933070ad22ef0afa
parentadb037d67ad46491bb0e9c2a09b56e89dd8a3617
cmd/go/internal/load: use setLoadPackageDataError in loadImport

This makes the error handling in loadImport somewhat more uniform,
with no discernable effect on reported errors.

Noticed in CL 303869.

Updates #36087
Updates #38034

This somewhat simplifies the code, with no discernable effect on

Change-Id: I30521f658f264d6f99d1844d6701269bbb372246
Reviewed-on: https://go-review.googlesource.com/c/go/+/304069
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/load/pkg.go