Skip to content

Commit

Permalink
hugolib: Improve shortcode error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed May 9, 2017
1 parent 7d39990 commit 58d9cbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hugolib/shortcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.