PR comments.
This commit is contained in:
parent
92348fb526
commit
58cda93b08
1 changed files with 1 additions and 2 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue