1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:04:46 -07:00

[dev.link] cmd/link: fix minor error on error reporting

Correctly propagate ... arguments. (Maybe vet should warn on it?)

Reviewed-on: https://go-review.googlesource.com/c/go/+/230017
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>

Change-Id: Ife56dc2321847cdaf0caea3142c2c7dad8b5924d
Reviewed-on: https://go-review.googlesource.com/c/go/+/230027
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Cherry Zhang 2020-04-24 15:18:54 -04:00
parent 42cca1a7fe
commit 1d083eba5b
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ func Errorf(s *sym.Symbol, format string, args ...interface{}) {
// output file and return a non-zero error code.
func (ctxt *Link) Errorf(s loader.Sym, format string, args ...interface{}) {
if ctxt.loader != nil {
ctxt.loader.Errorf(s, format, args)
ctxt.loader.Errorf(s, format, args...)
return
}
// Note: this is not expected to happen very often.

View File

@ -2825,7 +2825,7 @@ func (l *Loader) GetErrorReporter() *ErrorReporter {
// Errorf method logs an error message. See ErrorReporter.Errorf for details.
func (l *Loader) Errorf(s Sym, format string, args ...interface{}) {
l.errorReporter.Errorf(s, format, args)
l.errorReporter.Errorf(s, format, args...)
}
// For debugging.