Set incomplete error when cluster list fails

Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
Matthias Hanel
2021-12-02 12:31:31 -05:00
parent adf974d681
commit aa25a2f600

View File

@@ -4127,6 +4127,7 @@ LOOP:
return
case <-notActive.C:
s.Warnf("Did not receive all consumer info results for %q", acc)
resp.Error = NewJSClusterIncompleteError()
break LOOP
case ci := <-rc:
resp.Consumers = append(resp.Consumers, ci)