diff options
Diffstat (limited to 'docs/content/en/functions/fmt/Errorf.md')
-rw-r--r-- | docs/content/en/functions/fmt/Errorf.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/content/en/functions/fmt/Errorf.md b/docs/content/en/functions/fmt/Errorf.md index bbdd62c53..93f546351 100644 --- a/docs/content/en/functions/fmt/Errorf.md +++ b/docs/content/en/functions/fmt/Errorf.md @@ -8,6 +8,7 @@ action: related: - functions/fmt/Erroridf - functions/fmt/Warnf + - functions/fmt/Warnidf returnType: string signatures: ['fmt.Errorf FORMAT [INPUT]'] aliases: [/functions/errorf] @@ -18,9 +19,9 @@ aliases: [/functions/errorf] The `errorf` function evaluates the format string, then prints the result to the ERROR log and fails the build. ```go-html-template -{{ errorf "The %q shortcode requires a src parameter. See %s" .Name .Position }} +{{ errorf "The %q shortcode requires a src argument. See %s" .Name .Position }} ``` Use the [`erroridf`] function to allow optional suppression of specific errors. -[`erroridf`]: /functions/fmt/erroridf +[`erroridf`]: /functions/fmt/erroridf/ |