From 6659a697dec8ab2c8f254f86d33946fb65035588 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 23 May 2023 15:58:50 +0200 Subject: [PATCH] Improve messaging --- .../DatasourceNavigator/modals/DatasourceConfigModal.svelte | 2 +- .../[application]/data/datasource/[datasourceId]/index.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/backend/DatasourceNavigator/modals/DatasourceConfigModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/modals/DatasourceConfigModal.svelte index f5d57285bb..5394510122 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/modals/DatasourceConfigModal.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/modals/DatasourceConfigModal.svelte @@ -29,7 +29,7 @@ try { const resp = await validateDatasourceConfig(datasource) if (!resp.connected) { - displayError(resp.error) + displayError(`Unable to connect - ${resp.error}`) } connected = resp.connected } catch (err) { diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte index 850e92c772..f33860bb69 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte @@ -54,7 +54,7 @@ try { const resp = await API.validateDatasource(datasource) if (!resp.connected) { - displayError(`Error connecting to the datasource: ` + resp.error) + displayError(`Unable to connect - ${resp.error}`) } connected = resp.connected } catch (err) {