mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-26 21:53:48 +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,
|
messageIdsToFetch,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (error.code === undefined) {
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
|
||||||
await this.gmailErrorHandlingService.handleGmailError(
|
await this.gmailErrorHandlingService.handleGmailError(
|
||||||
{
|
{
|
||||||
code: error.code,
|
code: error.code,
|
||||||
|
Loading…
Reference in New Issue
Block a user