modernice/goes

[nats] jetstream driver `ensureStream` returns misleading error

Closed this issue · 1 comments

The ensureStream method of the JetStream driver returns a misleading error when the stream configuration is not as expected. It returns the ErrConsumerExists error instead of ErrStreamExists
source

I would be happy to create PR.

Nice catch, will merge your PR if you want to fix this!