hugo/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 #9708
2022-03-25 16:40:36 +01:00
..
images resources/images: Require width and height for Crop, Fill, and Fit 2022-03-20 19:44:41 +01:00
internal all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
jsconfig
page resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
postpub all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
resource_factories resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
resource_transformers all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
testdata
errorResource.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
image.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
image_cache.go
image_extended_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
image_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
post_publish.go
resource.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
resource_cache.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_cache_test.go
resource_metadata.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_metadata_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_spec.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
testhelpers_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
transform.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
transform_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00