mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
707 B
707 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 argument. See %s" .Name .Position }}
Use the erroridf
function to allow optional suppression of specific errors.