mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: improve nonexistent package error message
Change-Id: I207541efa6a34bc21e7a00584376622b59e2bf6d Reviewed-on: https://go-review.googlesource.com/c/go/+/302749 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
7e00049b55
commit
f82ce7fb23
1 changed files with 1 additions and 1 deletions
|
|
@ -2208,7 +2208,7 @@ func loadObjRefs(l *Loader, r *oReader, arch *sys.Arch) {
|
||||||
pkg := r.Pkg(i)
|
pkg := r.Pkg(i)
|
||||||
objidx, ok := l.objByPkg[pkg]
|
objidx, ok := l.objByPkg[pkg]
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Fatalf("reference of nonexisted package %s, from %v", pkg, r.unit.Lib)
|
log.Fatalf("%v: reference to nonexistent package %s", r.unit.Lib, pkg)
|
||||||
}
|
}
|
||||||
r.pkg[i] = objidx
|
r.pkg[i] = objidx
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue