mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 12:45:19 -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 }}
|
{{ else with .Value }}
|
||||||
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
|
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ errorf "Unable to get remote resource %q" $url }}
|
{{ warnf "Unable to get remote resource %q" $url }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user