1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-03-29 00:23:26 +00:00
hugo/tpl/resources
Bjørn Erik Pedersen 9202117ba0 resources: Add more details to .Err
This commit adds a .Data object (a map with `Body`, `StatusCode` etc.) to the .Err returned from `resources.GetRemote`, which means you can now do:

```
{{ with .Err }}
{{ range $k, $v := .Data }}
{{ end }}
{{ end }}
```

Fixes 
2022-03-25 16:40:36 +01:00
..
init.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resources.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00