-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Version: 0.24.4
Running rhoas kafka consumergroup list when using a consumer group for which you are not the instance owner panics because of a missing i18n message.
Steps to reproduce
- "Use" an instance which does not belong to you by running
rhoas kafka use <instance> - Run
rhoas kafka consumergroup list.
Expected vs actual behaviour
You should see an "Unauthorized" error message.
Logs
panic: message "kafka.consumerGroup.list.common.error.unauthorized" not found in language "en"
goroutine 1 [running]:
github.com/nicksnyder/go-i18n/v2/i18n.(*Localizer).MustLocalize(0xc000459540, 0xc0004af8d0, 0x1c478e2, 0x9)
/home/ephelan/.gvm/pkgsets/go1.16.4/global/pkg/mod/github.com/nicksnyder/go-i18n/v2@v2.1.2/i18n/localizer.go:211 +0x7c
github.com/redhat-developer/app-services-cli/pkg/localize/goi18n.(*Goi18n).MustLocalize(0xc000407860, 0x1c8838c, 0x32, 0xc000468090, 0x1, 0x1, 0xc0004cc408, 0x0)
/home/ephelan/code/github.com/redhat-developer/app-services-cli/pkg/localize/goi18n/go_i18n.go:84 +0x165
github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup/list.runList(0xc0001a9180, 0xc0003e8d10, 0x0)
/home/ephelan/code/github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup/list/list.go:127 +0x54c
github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup/list.NewListConsumerGroupCommand.func1(0xc00021b680, 0x2ad0cd8, 0x0, 0x0, 0x0, 0x0)
/home/ephelan/code/github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/consumergroup/list/list.go:77 +0x9bReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working