go/analysis/unitchecker: fix unresolved import error message Change-Id: Id198ca219f0721661d6de1729a15ada45300eba3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/803782 Commit-Queue: Alan Donovan <adonovan@google.com> Auto-Submit: Alan Donovan <adonovan@google.com> Auto-Submit: Mark Freeman <markfreeman@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/go/analysis/unitchecker/unitchecker.go b/go/analysis/unitchecker/unitchecker.go index f6f3cd5..421241c 100644 --- a/go/analysis/unitchecker/unitchecker.go +++ b/go/analysis/unitchecker/unitchecker.go
@@ -296,7 +296,7 @@ return importerFunc(func(importPath string) (*types.Package, error) { path, ok := cfg.ImportMap[importPath] // resolve vendoring, etc if !ok { - return nil, fmt.Errorf("can't resolve import %q", path) + return nil, fmt.Errorf("can't resolve import %q", importPath) } return compilerImporter.Import(path) })