Use warnf instead of errorf in try-catch example

This commit is contained in:
Joe Mooring 2025-01-16 07:16:06 -08:00 committed by GitHub
parent dee3e5f092
commit 63867d56fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,7 @@ Instead of failing the build, we can catch the error and emit a warning:
{{ else with .Value }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
{{ else }}
{{ errorf "Unable to get remote resource %q" $url }}
{{ warnf "Unable to get remote resource %q" $url }}
{{ end }}
{{ end }}
```