hugo/tpl
Bjørn Erik Pedersen f669ef6bec
herrors: Improve handling of JSON errors
`*json.UnmarshalTypeError` and `*json.SyntaxError` has a byte `Offset`, so use that.

This commit also reworks/simplifies the errror line matching logic. This also makes the file reading unbuffered, but that should be fine in this error case.

See #5324
2018-10-23 14:35:43 +02:00
..
cast
collections commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
compare
crypto
data hugolib: Continue the file context/line number errors work 2018-10-22 20:46:14 +02:00
encoding tpl: Update Jsonify to return pretty-print output 2018-10-21 23:36:35 +02:00
fmt commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
images
inflect
internal
lang
math
os
partials commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
path
resources commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
safe
strings commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
templates
time
tplimpl hugolib: Continue the file context/line number errors work 2018-10-22 20:46:14 +02:00
transform Convert the rest to new page parser code paths 2018-10-22 20:46:14 +02:00
urls commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
template.go herrors: Improve handling of JSON errors 2018-10-23 14:35:43 +02:00
template_test.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00