Skip to content

Commit

Permalink
Merge pull request #928 from nats-io/nats_err_pre
Browse files Browse the repository at this point in the history
Add `nats: ` prefix to stream info errors to match consumer info
  • Loading branch information
derekcollison committed Mar 16, 2022
2 parents 77460b8 + 241d156 commit b54113a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsm.go
Expand Up @@ -624,7 +624,7 @@ func (js *js) StreamInfo(stream string, opts ...JSOpt) (*StreamInfo, error) {
if resp.Error.Code == 404 {
return nil, ErrStreamNotFound
}
return nil, errors.New(resp.Error.Description)
return nil, fmt.Errorf("nats: %s", resp.Error.Description)
}

return resp.StreamInfo, nil
Expand Down

0 comments on commit b54113a

Please sign in to comment.