Skip to content

fix: use resp.Error to show NATS error in deleteMsg#1822

Merged
piotrpio merged 1 commit into
nats-io:mainfrom
imariman:fix-jetstream-deletemsg-error-message
Mar 19, 2025
Merged

fix: use resp.Error to show NATS error in deleteMsg#1822
piotrpio merged 1 commit into
nats-io:mainfrom
imariman:fix-jetstream-deletemsg-error-message

Conversation

@imariman

Copy link
Copy Markdown
Contributor

The error message in deleteMsg was printing nil when resp.Success was false. Changed to use resp.Error, displaying the actual NATS error.

The error message in deleteMsg was printing nil when resp.Success was false.
Changed to use resp.Error, displaying the actual NATS error.
@imariman
imariman force-pushed the fix-jetstream-deletemsg-error-message branch from a0db27b to 4f5980d Compare March 15, 2025 10:52

@piotrpio piotrpio left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution!

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 84.842% (-0.01%) from 84.855%
when pulling 4f5980d on imariman:fix-jetstream-deletemsg-error-message
into 0f6e9ef on nats-io:main.

@piotrpio
piotrpio merged commit ca15abb into nats-io:main Mar 19, 2025
@piotrpio piotrpio mentioned this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants