mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-09 08:04:56 -04:00
Use warnf instead of errorf in try-catch example
This commit is contained in:
parent
dee3e5f092
commit
63867d56fe
@ -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 }}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user