SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Improve error handling in dataPoolClient for permission denial
Salman-Ahamed64fd10d2bdc5
diff --git a/packages/app/src/react/features/data-pool/client/datapool.client.ts b/packages/app/src/react/features/data-pool/client/datapool.client.tsindex 239745b7..8dd056a5 100644--- a/packages/app/src/react/features/data-pool/client/datapool.client.ts+++ b/packages/app/src/react/features/data-pool/client/datapool.client.ts@@ -174,8 +174,9 @@ export const dataPoolClient = {throw new Error(errorMessage);}} catch (error) {- if (error instanceof Error) {- throw error;+ if (error instanceof Error) throw error;+ if (error.status === 403) {+ throw new Error("You don't have permission to delete this data space");}throw new Error('Failed to delete namespace');}