From 276ab5935873edc05e1882c06fc527a14babd27c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 30 Jan 2023 14:50:47 -0700 Subject: encoder, reencoder: Distinguish between syntax errors and I/O errors --- ReleaseNotes.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ReleaseNotes.md') diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 9974f0e..e00bf10 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -8,6 +8,13 @@ a user of lowmemjson's native APIs does not need to import `encoding/json` or compat/json in order to use them. + - Encoder, ReEncoder: If there was an error writing to the output + stream, it may have returned a `*ReEncodeSyntaxError` even though + it's not a syntax issue, or may have returned the underlying + error without wrapping it. If there is an error writing to the + output, Encoder and ReEncoder now return `*EncodeWriteError` and + `*ReEncodeWriteError` respectively. + # v0.3.5 (2023-02-10) Theme: Compatibility bugfixes -- cgit v1.2.3-2-g168b