mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
Fixed wrong error check (#2986)
Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
@@ -4005,7 +4005,7 @@ func (s *Server) jsClusteredStreamRequest(ci *ClientInfo, acc *Account, subject,
|
||||
cfg := &ccfg
|
||||
|
||||
selectedLimits, tier, _, apiErr := acc.selectLimits(&ccfg)
|
||||
if err != nil {
|
||||
if apiErr != nil {
|
||||
resp.Error = apiErr
|
||||
s.sendAPIErrResponse(ci, acc, subject, reply, string(rmsg), s.jsonResponse(&resp))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user