tpl: Do not return any value in errorf

Fixes #6653
This commit is contained in:
Bjørn Erik Pedersen
2019-12-21 10:26:14 +01:00
parent 1773d71d5b
commit 50cc7fe545
3 changed files with 6 additions and 6 deletions

View File

@@ -51,11 +51,11 @@ func (ns *Namespace) Println(a ...interface{}) string {
return _fmt.Sprintln(a...)
}
// Errorf formats according to a format specifier and returns the string as a
// value that satisfies error.
// Errorf formats according to a format specifier and logs an ERROR.
// It returns an empty string.
func (ns *Namespace) Errorf(format string, a ...interface{}) string {
ns.errorLogger.Printf(format, a...)
return _fmt.Sprintf(format, a...)
return ""
}
// Warnf formats according to a format specifier and logs a WARNING.