mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-25 13:02:15 +03:00
Throw exception when error code is not defined in messaging import
This commit is contained in:
parent
afac4de679
commit
a79b256409
@ -157,6 +157,10 @@ export class MessagingGmailMessagesImportService {
|
||||
messageIdsToFetch,
|
||||
);
|
||||
|
||||
if (error.code === undefined) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
await this.gmailErrorHandlingService.handleGmailError(
|
||||
{
|
||||
code: error.code,
|
||||
|
Loading…
Reference in New Issue
Block a user