From 58cda93b08f94e4698138e9c0d8541a156127f88 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 13 May 2024 13:33:59 +0100 Subject: [PATCH] PR comments. --- packages/builder/src/stores/builder/automations.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/builder/src/stores/builder/automations.js b/packages/builder/src/stores/builder/automations.js index 90ba88b3e7..cbe48cef33 100644 --- a/packages/builder/src/stores/builder/automations.js +++ b/packages/builder/src/stores/builder/automations.js @@ -166,7 +166,6 @@ const automationActions = store => ({ await store.actions.save(newAutomation) }, test: async (automation, testData) => { - const baseError = "Something went wrong testing your automation" let result try { result = await API.testAutomation({ @@ -175,7 +174,7 @@ const automationActions = store => ({ }) } catch (err) { const message = err.message || err.status || JSON.stringify(err) - throw `${baseError} - ${message}` + throw `Automation test failed - ${message}` } if (!result?.trigger && !result?.steps?.length) { if (result?.err?.code === "usage_limit_exceeded") {