From 9582a66f870db6d158ca6052d49cf61634c94c16 Mon Sep 17 00:00:00 2001 From: roggervalf Date: Tue, 2 Apr 2024 20:08:48 -0500 Subject: [PATCH] fix(client): try catch list command as it's not supported in GCP --- 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' }]; } }