github.com/shohhei1126/hugo@v0.42.2-0.20180623210752-3d5928889ad7/docs/content/en/functions/errorf.md (about) 1 --- 2 title: errorf 3 linktitle: errorf 4 description: Evaluates a format string and logs it to ERROR. 5 date: 2017-09-30 6 publishdate: 2017-09-30 7 lastmod: 2017-09-30 8 categories: [functions] 9 menu: 10 docs: 11 parent: "functions" 12 keywords: [strings, log, error] 13 signature: ["errorf FORMAT INPUT"] 14 workson: [] 15 hugoversion: 16 relatedfuncs: [printf] 17 deprecated: false 18 aliases: [] 19 --- 20 21 `errorf` will evaluate a format string, then output the result to the ERROR log. 22 This will also cause the build to fail. 23 24 ``` 25 {{ errorf "Something went horribly wrong! %s" err }} 26 ```