Skip to content

Commit b2e8630

Browse files
committed
cmd/compile: simplify "missing function body" error message
Fixes #21747. Change-Id: I6a68370be3b7510ce364ddd1e41a1d767ce3a67f Reviewed-on: https://go-review.googlesource.com/61311 Run-TryBot: Matthew Dempsky <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
1 parent 53d24f7 commit b2e8630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/gc/noder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ func (p *noder) funcDecl(fun *syntax.FuncDecl) *Node {
399399
f.Func.Endlineno = lineno
400400
} else {
401401
if pure_go || strings.HasPrefix(f.funcname(), "init.") {
402-
yyerrorl(f.Pos, "missing function body for %q", f.funcname())
402+
yyerrorl(f.Pos, "missing function body")
403403
}
404404
}
405405

0 commit comments

Comments
 (0)