hugo/common/herrors
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
..
error_locator.go herrors: Improve handling of JSON errors 2018-10-23 14:35:43 +02:00
error_locator_test.go herrors: Improve handling of JSON errors 2018-10-23 14:35:43 +02:00
errors.go commands: Show server error info in browser 2018-10-16 22:10:56 +02:00
file_error.go herrors: Improve handling of JSON errors 2018-10-23 14:35:43 +02:00
file_error_test.go herrors: Improve handling of JSON errors 2018-10-23 14:35:43 +02:00
line_number_extractors.go hugolib: Improve errors in /i18n handlling 2018-10-22 20:46:14 +02:00