fix: enhance error handling in build_flow and add error handling for Flow build (#3259)
* feat: add error handling for Flow build The code changes in `buildUtils.ts` add error handling for the Flow build process. It includes a new case for handling errors in the switch statement, which displays the error message and triggers the `onBuildError` function. This change ensures that errors during the Flow build are properly handled and the build process is stopped. * feat: enhance error handling in build_flow to capture and report HTTP exceptions in the flow building process
This commit is contained in:
parent
645c723d21
commit
d0484ba412
2 changed files with 22 additions and 1 deletions
|
|
@ -264,6 +264,14 @@ export async function buildFlowVertices({
|
|||
useFlowStore.getState().setIsBuilding(false);
|
||||
return true;
|
||||
}
|
||||
case "error": {
|
||||
const errorMessage = data.error;
|
||||
console.log(data);
|
||||
onBuildError!("Error Running Flow", [errorMessage], []);
|
||||
buildResults.push(false);
|
||||
useFlowStore.getState().setIsBuilding(false);
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue