mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 17:19:12 -05:00
5fd1e74903
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
679 B
679 B
title | description | categories | keywords | action | aliases | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fmt.Errorf | Log an ERROR from a template. |
|
|
{{% include "functions/fmt/_common/fmt-layout.md" %}}
The errorf
function evaluates the format string, then prints the result to the ERROR log and fails the build.
{{ errorf "The %q shortcode requires a src parameter. See %s" .Name .Position }}
Use the erroridf
function to allow optional suppression of specific errors.