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