Improve messaging

This commit is contained in:
Adria Navarro 2023-05-23 15:58:50 +02:00
parent 3951788f7e
commit 6659a697de
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
try { try {
const resp = await validateDatasourceConfig(datasource) const resp = await validateDatasourceConfig(datasource)
if (!resp.connected) { if (!resp.connected) {
displayError(resp.error) displayError(`Unable to connect - ${resp.error}`)
} }
connected = resp.connected connected = resp.connected
} catch (err) { } catch (err) {

View File

@ -54,7 +54,7 @@
try { try {
const resp = await API.validateDatasource(datasource) const resp = await API.validateDatasource(datasource)
if (!resp.connected) { if (!resp.connected) {
displayError(`Error connecting to the datasource: ` + resp.error) displayError(`Unable to connect - ${resp.error}`)
} }
connected = resp.connected connected = resp.connected
} catch (err) { } catch (err) {