mirror of
https://github.com/golang/go
synced 2024-11-12 09:50:21 -07:00
go/internal/gcimporter: add missing argument to error message
Change-Id: I3071f0e876506c6dc283e97bc15f157bf2ff011e Reviewed-on: https://go-review.googlesource.com/19641 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
c51f9173ad
commit
3e91e8aa35
@ -385,7 +385,7 @@ func (p *parser) getPkg(id, name string) *types.Package {
|
||||
if pname := pkg.Name(); pname == "" {
|
||||
pkg.SetName(name)
|
||||
} else if pname != name {
|
||||
p.errorf("%s package name mismatch: %s (given) vs %s (expected)", pname, name)
|
||||
p.errorf("%s package name mismatch: %s (given) vs %s (expected)", id, pname, name)
|
||||
}
|
||||
}
|
||||
return pkg
|
||||
|
Loading…
Reference in New Issue
Block a user