nats.net icon indicating copy to clipboard operation
nats.net copied to clipboard

Improve parseError message to include position and UTF8 buffer string

Open Madgvox opened this issue 5 months ago • 0 comments

byte[]'s ToString prints System.Byte[]. This is not helpful when diagnosing the state of the parser when an error occurs, so I instead print the UTF8 encoded string version of the buffer. I also print the position for good measure.

Madgvox avatar Jan 31 '24 06:01 Madgvox