From 58d9cbd31bcf7c296a39860fd7e566d10faaff28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 9 May 2017 18:37:43 +0200 Subject: [PATCH] hugolib: Improve shortcode error message --- hugolib/shortcode.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index 01beffe2..b088ed61 100644 --- a/hugolib/shortcode.go +++ b/hugolib/shortcode.go @@ -586,8 +586,7 @@ func renderShortcodeWithPage(tmpl tpl.Template, data *ShortcodeWithPage) string err := tmpl.Execute(buffer, data) isInnerShortcodeCache.RUnlock() if err != nil { - data.Page.s.Log.ERROR.Println("error processing shortcode", tmpl.Name(), "\n ERR:", err) - data.Page.s.Log.WARN.Println(data) + data.Page.s.Log.ERROR.Printf("error processing shortcode %q for page %q: %s", tmpl.Name(), data.Page.Path(), err) } return buffer.String() } -- 2.30.2