1
0
Fork 0
mirror of synced 2024-08-23 05:51:29 +12:00

PR comments.

This commit is contained in:
mike12345567 2024-05-13 13:33:59 +01:00
parent 92348fb526
commit 58cda93b08

View file

@ -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") {