1
0
Fork 0
mirror of synced 2024-08-18 11:31:28 +12:00

Merge pull request #10434 from Budibase/improve-automations-error-message

Improve Automations Error Message
This commit is contained in:
Martin McKeaveney 2023-05-05 12:00:50 +01:00 committed by GitHub
commit 79a294e173
2 changed files with 4 additions and 1 deletions

View file

@ -147,6 +147,9 @@ const automationActions = store => ({
testData,
})
if (!result?.trigger && !result?.steps?.length) {
if (result?.err?.code === "usage_limit_exceeded") {
throw "You have exceeded your automation quota"
}
throw "Something went wrong testing your automation"
}
store.update(state => {

View file

@ -52,7 +52,7 @@
await automationStore.actions.test($selectedAutomation, testData)
$automationStore.showTestPanel = true
} catch (error) {
notifications.error("Error testing automation")
notifications.error(error)
}
}
</script>