summaryrefslogtreecommitdiffstats
path: root/docs/content/en
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-21 10:26:14 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-21 10:26:14 +0100
commit50cc7fe54580018239ea95aafe67f6a158cdcc9f (patch)
tree18fd25561fb04fd14e3db6c306c2ef6c3de790d0 /docs/content/en
parent1773d71d5b40f5a6a14edca417d2818607a499f1 (diff)
tpl: Do not return any value in errorf
Fixes #6653
Diffstat (limited to 'docs/content/en')
-rw-r--r--docs/content/en/functions/errorf.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/en/functions/errorf.md b/docs/content/en/functions/errorf.md
index edc8e5755..9cd7e69b6 100644
--- a/docs/content/en/functions/errorf.md
+++ b/docs/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 }}