hugo/tpl/data
Bjørn Erik Pedersen 35fbfb19a1
commands: Show server error info in browser
The main item in this commit is showing of errors with a file context when running `hugo server`.

This can be turned off: `hugo server --disableBrowserError` (can also be set in `config.toml`).

But to get there, the error handling in Hugo needed a revision. There are some items left TODO for commits soon to follow, most notable errors in content and config files.

Fixes #5284
Fixes #5290
See #5325
See #5324
2018-10-16 22:10:56 +02:00
..
cache.go tpl: Use hash for cache key 2017-07-21 13:10:11 +02:00
cache_test.go tpl/data: Clean up data namespace 2017-05-02 09:18:41 +02:00
data.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
data_test.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
init.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
init_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
resources.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
resources_test.go tpl/data: Revise error handling in getJSON and getCSV 2018-09-11 16:46:25 +02:00