Improve messaging
This commit is contained in:
parent
3951788f7e
commit
6659a697de
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue