mirror of
https://github.com/golang/go
synced 2024-11-20 05:14:41 -07:00
cmd/cgo: add missing formatting directive in error message
Fixes #15310. Change-Id: I588b3c630a20a6878f7cd00f9af29b1dd8a4abf6 Reviewed-on: https://go-review.googlesource.com/22100 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
d57a118afa
commit
1d0977a1d5
@ -1009,7 +1009,7 @@ func (p *Package) rewriteRef(f *File) {
|
|||||||
if r.Name.Kind == "var" {
|
if r.Name.Kind == "var" {
|
||||||
expr = &ast.StarExpr{Star: (*r.Expr).Pos(), X: expr}
|
expr = &ast.StarExpr{Star: (*r.Expr).Pos(), X: expr}
|
||||||
} else {
|
} else {
|
||||||
error_(r.Pos(), "only C variables allowed in selector expression", fixGo(r.Name.Go))
|
error_(r.Pos(), "only C variables allowed in selector expression %s", fixGo(r.Name.Go))
|
||||||
}
|
}
|
||||||
|
|
||||||
case "type":
|
case "type":
|
||||||
|
Loading…
Reference in New Issue
Block a user