Permalink
Browse files

hugolib: Improve shortcode error message

  • Loading branch information...
bep committed May 9, 2017
1 parent 7d39990 commit 58d9cbd31bcf7c296a39860fd7e566d10faaff28
Showing with 1 addition and 2 deletions.
  1. +1 −2 hugolib/shortcode.go
View
@@ -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()
}

0 comments on commit 58d9cbd

Please sign in to comment.