nats-io / nats.net.v1

The official C# Client for NATS
Apache License 2.0
646 stars 151 forks source link

Improve parseError message to include position and UTF8 buffer string #859

Closed Madgvox closed 2 months ago

Madgvox commented 9 months ago

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.

scottf commented 4 months ago

@Madgvox If this isn't going to move forward I'm going to close it without merging.