tpl: Add errorf template function
authorBrendan Roy <br3ndanr@gmail.com>
Sat, 30 Sep 2017 10:00:19 +0000 (20:00 +1000)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 3 Oct 2017 05:59:51 +0000 (07:59 +0200)
commit4fc67fe44a3c65fc7faaed21d5fa5bb5f87edf2c
tree5b9562852eb01c76f31ca4651561785573a50b37
parent47fdfd5196cd24a23b30afe1d88969ffb413ab59
tpl: Add errorf template function

Add template function that will build a string from the given format
string and arguments, then log it to ERROR. This has an intended
side-effect of causing the build to fail, when executed.

Resolves #3817
docs/content/functions/errorf.md [new file with mode: 0644]
tpl/fmt/fmt.go
tpl/fmt/init.go