From f5335176723721b7fdbf9d8fd0177ecbdf760fc3 Mon Sep 17 00:00:00 2001 From: Alvaro <110414366+alvaro-signal@users.noreply.github.com> Date: Fri, 30 Sep 2022 14:33:24 -0600 Subject: [PATCH] Don't fallback to client-fanout on timeout, and more logs --- ts/util/sendToGroup.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ts/util/sendToGroup.ts b/ts/util/sendToGroup.ts index f94f1cb5c9..40dc5ebf0e 100644 --- a/ts/util/sendToGroup.ts +++ b/ts/util/sendToGroup.ts @@ -600,11 +600,13 @@ export async function sendToGroupViaSenderKey(options: { } } - throw new Error( - `sendToGroupViaSenderKey/${logId}: Returned unexpected error ${ + log.error( + `sendToGroupViaSenderKey/${logId}: Returned unexpected error code: ${ error.code - }. Failing over. ${error.stack || error}` + }, error class: ${typeof error}` ); + + throw error; } // 11. Return early if there are no normal send recipients