From 4dd2d641531f74025ed9f51ea5a961e936988cfb Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 3 Dec 2023 15:08:42 -0800 Subject: [PATCH] Fix erroridf example --- content/en/functions/fmt/Erroridf.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/functions/fmt/Erroridf.md b/content/en/functions/fmt/Erroridf.md index ae5b5c3e24..9884f49352 100644 --- a/content/en/functions/fmt/Erroridf.md +++ b/content/en/functions/fmt/Erroridf.md @@ -20,15 +20,15 @@ The `erroridf` function evaluates the format string, then prints the result to t This template code: ```go-html-template -{{ erroridf "The %q shortcode was unable to find %s. See %s" .Name $file .Position }} +{{ erroridf "error-42" "You should consider fixing this." }} ``` Produces this console log: ```text ERROR You should consider fixing this. -If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config: -ignoreErrors = ["error-42"] +You can suppress this error by adding the following to your site configuration: +ignoreErrors = ['error-42'] ``` To suppress this message: