From c03a7d12a1559ee650c083087046f995e6564e28 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Fri, 22 May 2020 21:44:39 +0200 Subject: [PATCH] :zap: Minor fix to Mailchimp-Node --- packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts b/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts index a78124feed..91dfcdde85 100644 --- a/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts @@ -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; } }