Skip to content

Commit

Permalink
Fix erroridf example
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Dec 3, 2023
1 parent 9ae8e91 commit 4dd2d64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/en/functions/fmt/Erroridf.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4dd2d64

Please sign in to comment.