From ca68a9eff070e8dc09c484b1fb298c7afaa18f6f Mon Sep 17 00:00:00 2001 From: Rogger Valverde Date: Fri, 5 Apr 2024 22:25:03 -0600 Subject: [PATCH] fix(client): try catch list command as it's not supported in GCP (#2506) --- src/classes/queue-getters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/queue-getters.ts b/src/classes/queue-getters.ts index 2804d42d9e..4b40395c8f 100644 --- a/src/classes/queue-getters.ts +++ b/src/classes/queue-getters.ts @@ -434,8 +434,8 @@ 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) { @@ -443,7 +443,7 @@ export class QueueGetters< throw err; } - return []; + return [{ name: 'GCP does not support client list' }]; } }