mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
feat(db-engine-specs): add support for Postgres root cert (#11720)
* feat(db-engine-specs): add support for Postgres root cert * remove logging of json decode exception message * fix error message * fix error message
This commit is contained in:
@@ -182,7 +182,9 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
? `${t('ERROR: ')}${
|
||||
typeof error.message === 'string'
|
||||
? error.message
|
||||
: (error.message as Record<string, string[]>).sqlalchemy_uri
|
||||
: Object.entries(error.message as Record<string, string[]>)
|
||||
.map(([key, value]) => `(${key}) ${value.join(', ')}`)
|
||||
.join('\n')
|
||||
}`
|
||||
: t('ERROR: Connection failed. '),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user