adrfinance
adrfinance6mo ago

adrfinance - Hello, in a workflow I am doing an...

Hello, in a workflow I am doing an update in the Buildship Database. How can I capture the case that goes wrong so I return the appropriate error back to the frontend??
3 Replies
Gaurav Chadha
Gaurav Chadha6mo ago
Hi @adrfinance, you can use the branch conditions if the condition fails then throw error, also you can include a Throw Error node as well in your workflow, and if you want to capture the error you can edit the node to include try catch block, use the AI to update. On frontend you can simply return the error received at any step of your BuildShip workflow.
adrfinance
adrfinanceOP6mo ago
What will be the condition in the branch conditions in this case? @Gaurav Chadha
Gaurav Chadha
Gaurav Chadha6mo ago
Will depend on your previous node before branch, depends on which you want to update your data.