1
0
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:
Alberto Donizetti 2016-01-30 21:50:07 +01:00 committed by Robert Griesemer
parent c51f9173ad
commit 3e91e8aa35

View File

@ -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