summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-09 18:37:43 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-09 18:43:48 +0200
commit58d9cbd31bcf7c296a39860fd7e566d10faaff28 (patch)
tree4fb0a4bc03e6a623a4b7e85184058b7263ccc794 /hugolib/shortcode.go
parent7d39990497f0ee34c252ca746850f75bab18ff5e (diff)
hugolib: Improve shortcode error message
Diffstat (limited to 'hugolib/shortcode.go')
-rw-r--r--hugolib/shortcode.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go
index 01beffe2b..b088ed61d 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()
}