nats-io / nats.rs

Rust client for NATS, the cloud native messaging system.
Apache License 2.0
1.04k stars 164 forks source link

Preserve case of server error messages #1258

Closed oscarwcl closed 4 months ago

oscarwcl commented 4 months ago

Server errors can contain case-sensitive values like subject names which can cause confusion if not displayed in their original case.

This was motivated by this error: nats: permissions violation for publish to "$js.api.stream.info.kv_test", which is misleading since the actual subject is $JS.API.STREAM.INFO.KV_test.