mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
⚡ Minor fix to Mailchimp-Node
This commit is contained in:
parent
194d2bdacd
commit
c03a7d12a1
|
@ -45,9 +45,9 @@ export async function mailchimpApiRequest(this: IHookFunctions | IExecuteFunctio
|
|||
return await this.helpers.request!(options);
|
||||
} catch (error) {
|
||||
if (error.response.body && error.response.body.detail) {
|
||||
throw new Error(`Mailchimp Error: response [${error.statusCode}]: ${error.response.body.detail}`);
|
||||
throw new Error(`Mailchimp Error response [${error.statusCode}]: ${error.response.body.detail}`);
|
||||
}
|
||||
throw new Error(error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue