mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
feat(db): custom database error messages (#34674)
This commit is contained in:
@@ -189,7 +189,9 @@ class TestConnectionDatabaseCommand(BaseCommand):
|
||||
engine=database.db_engine_spec.__name__,
|
||||
)
|
||||
# check for custom errors (wrong username, wrong password, etc)
|
||||
errors = database.db_engine_spec.extract_errors(ex, self._context)
|
||||
errors = database.db_engine_spec.extract_errors(
|
||||
ex, self._context, database_name=database.unique_name
|
||||
)
|
||||
raise SupersetErrorsException(errors, status=400) from ex
|
||||
except OAuth2RedirectError:
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user