We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b32e26a commit 24a38a8Copy full SHA for 24a38a8
src/commands/missionctrl/broker/opstatus.ts
@@ -57,7 +57,9 @@ export default class MissionctrlBrokerOpstatus extends ScCommand<typeof Missionc
57
apiUrl += `?customAttributes=name=="${name}"`
58
const resp = await conn.get<EventBrokerListApiResponse>(apiUrl)
59
// FUTURE: show status of multiple brokers operations that match the name
60
- if (resp.data.length > 1) {
+ if (resp.data.length === 0) {
61
+ this.error(`No brokers found with name: ${name}.`)
62
+ } else if (resp.data.length > 1) {
63
this.error(`Multiple broker services found with: ${name}. Exactly one broker service must match the provided name.`)
64
} else {
65
brokerId = resp.data[0]?.id
0 commit comments