Commit 3e91e8aa authored by Alberto Donizetti's avatar Alberto Donizetti Committed by Robert Griesemer

go/internal/gcimporter: add missing argument to error message

Change-Id: I3071f0e876506c6dc283e97bc15f157bf2ff011e
Reviewed-on: https://go-review.googlesource.com/19641Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent c51f9173
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment