The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Throw exception when an unknown error is caught on messaging sync (#5782)
Charles Bochetafac4de67997
diff --git a/packages/twenty-server/src/modules/messaging/common/services/messaging-error-handling.service.ts b/packages/twenty-server/src/modules/messaging/common/services/messaging-error-handling.service.tsindex 13e9ca5869b..c4448d83878 100644--- a/packages/twenty-server/src/modules/messaging/common/services/messaging-error-handling.service.ts+++ b/packages/twenty-server/src/modules/messaging/common/services/messaging-error-handling.service.ts@@ -100,7 +100,9 @@ export class MessagingErrorHandlingService {messageChannel.id,workspaceId,);- break;+ throw new Error(+ `Unhandled Gmail error code ${code} with reason ${reason}`,+ );}}