modernice / goes

goes is an event-sourcing framework for Go.
https://goes.modernice.dev
Apache License 2.0
134 stars 12 forks source link

[nats] jetstream driver `ensureStream` returns misleading error #115

Closed olpie101 closed 1 year ago

olpie101 commented 1 year ago

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.

bounoable commented 1 year ago

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