Skip to content

Commit

Permalink
degrade gracefully when get topics is called with restricted permissi…
Browse files Browse the repository at this point in the history
…ons (fixes #151)
  • Loading branch information
d-rk committed Mar 8, 2024
1 parent 1ef06d6 commit 4117685
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/topic/topic-operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,9 @@ func (operation *Operation) GetTopics(flags GetTopicsFlags) error {
go func(topic string) {
t, err := readTopic(&client, &admin, topic, requestedFields)
if err != nil {
errChannel <- errors.Errorf("unable to read topic %s: %v", topic, err)
} else {
topicChannel <- t
output.Debugf("failed to read topic %q: %v", topic, err)
}
topicChannel <- t
}(topic)
}

Expand Down

0 comments on commit 4117685

Please sign in to comment.