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:
Ville Brofeldt
2021-01-13 13:39:28 +02:00
committed by GitHub
parent 407b194b15
commit 40a334aacf
8 changed files with 111 additions and 7 deletions

View File

@@ -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. '),
);