mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
fix: Dynamic form to connect to Snowflake DB is not displaying authentication errors (#19491)
* fix: Dynamic form to connect to Snowflake DB is not displaying authentication errors * pr comments
This commit is contained in:
@@ -89,6 +89,9 @@ const engineSpecificAlertMapping = {
|
||||
};
|
||||
|
||||
const errorAlertMapping = {
|
||||
GENERIC_DB_ENGINE_ERROR: {
|
||||
message: t('Generic database engine error'),
|
||||
},
|
||||
CONNECTION_MISSING_PARAMETERS_ERROR: {
|
||||
message: t('Missing Required Fields'),
|
||||
description: t('Please complete all required fields.'),
|
||||
@@ -929,6 +932,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
}
|
||||
description={
|
||||
errorAlertMapping[validationErrors?.error_type]?.description ||
|
||||
validationErrors?.description ||
|
||||
JSON.stringify(validationErrors)
|
||||
}
|
||||
showIcon
|
||||
|
||||
Reference in New Issue
Block a user