Skip to content

Commit

Permalink
fix(client): try catch list command as it's not supported in GCP (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf authored Apr 6, 2024
1 parent 5ccc360 commit ca68a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/queue-getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,16 +434,16 @@ export class QueueGetters<
}[]
> {
const client = await this.client;
const clients = (await client.client('LIST')) as string;
try {
const clients = (await client.client('LIST')) as string;
const list = this.parseClientList(clients, matcher);
return list;
} catch (err) {
if (!clientCommandMessageReg.test((<Error>err).message)) {
throw err;
}

return [];
return [{ name: 'GCP does not support client list' }];
}
}

Expand Down

0 comments on commit ca68a9e

Please sign in to comment.