mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
@@ -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.
|
||||
|
@@ -53,7 +53,7 @@ func init() {
|
||||
ns.AddMethodMapping(ctx.Errorf,
|
||||
[]string{"errorf"},
|
||||
[][2]string{
|
||||
{`{{ errorf "%s." "failed" }}`, `failed.`},
|
||||
{`{{ errorf "%s." "failed" }}`, ``},
|
||||
},
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user