hugo/parser/metadecoders
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
..
decoder.go herrors: Improve handling of JSON errors 2018-10-23 14:35:43 +02:00
decoder_test.go parser/metadecoders: Consolidate the metadata decoders 2018-10-22 20:46:13 +02:00
format.go parser/metadecoders: Consolidate the metadata decoders 2018-10-22 20:46:13 +02:00
format_test.go parser/metadecoders: Consolidate the metadata decoders 2018-10-22 20:46:13 +02:00