From f4460fd540d21b97b3658e805d29ee4ca7b1686c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 21 Dec 2019 10:26:14 +0100 Subject: [PATCH] tpl: Do not return any value in errorf Fixes #6653 --- content/en/functions/errorf.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/functions/errorf.md b/content/en/functions/errorf.md index edc8e5755..9cd7e69b6 100644 --- a/content/en/functions/errorf.md +++ b/content/en/functions/errorf.md @@ -14,14 +14,14 @@ workson: [] hugoversion: relatedfuncs: [printf] deprecated: false -aliases: [] +aliases: [/functions/errorf] --- `errorf` or `warnf` will evaluate a format string, then output the result to the ERROR or WARNING log (and only once per error message to avoid flooding the log). Any ERROR will also cause the build to fail (the `hugo` command will `exit -1`). -Note that the WARNING will only be printed to the console. +Both functions return an empty string, so the messages are only printed to the console. ``` {{ errorf "Failed to handle page %q" .Path }}