diff --git a/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/messaging-gmail-messages-import.service.ts b/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/messaging-gmail-messages-import.service.ts index 2f49ded66e..8e1349cacc 100644 --- a/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/messaging-gmail-messages-import.service.ts +++ b/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/messaging-gmail-messages-import.service.ts @@ -157,6 +157,10 @@ export class MessagingGmailMessagesImportService { messageIdsToFetch, ); + if (error.code === undefined) { + throw error; + } + await this.gmailErrorHandlingService.handleGmailError( { code: error.code,