Throw exception when error code is not defined in messaging import

This commit is contained in:
Charles Bochet 2024-06-08 23:18:17 +02:00
parent afac4de679
commit a79b256409

View File

@ -157,6 +157,10 @@ export class MessagingGmailMessagesImportService {
messageIdsToFetch,
);
if (error.code === undefined) {
throw error;
}
await this.gmailErrorHandlingService.handleGmailError(
{
code: error.code,