hugo/resources
Bjørn Erik Pedersen f2946da9e8 Improve error messages, esp. when the server is running
* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of https://github.com/pkg/errors/issues/223 -- but also because most of this is now built-in to Go.

Fixes #9852
Fixes #9857
Fixes #9863
2022-05-06 19:43:22 +02:00
..
images Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
internal all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
jsconfig all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
postpub all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00
resource_factories Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
resource_transformers Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
testdata Add custom font support to images.Text 2021-12-07 16:53:02 +01:00
errorResource.go Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00
image.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
image_cache.go Fix MediaType when reading images from cache 2022-04-16 16:36:15 +02:00
image_extended_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
image_test.go Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00
integration_test.go Fix MediaType when reading images from cache 2022-04-16 16:36:15 +02:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
resource_cache.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_cache_test.go Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
resource_metadata.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02: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 Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00
transform.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
transform_test.go Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00