mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
feat: better error message when adding DBs (#13601)
* WIP * Adding tests * Add unit tests * Show error message * Fix lint * Fix after rebase
This commit is contained in:
@@ -25,6 +25,7 @@ from superset.commands.exceptions import (
|
||||
ImportFailedError,
|
||||
UpdateFailedError,
|
||||
)
|
||||
from superset.exceptions import SupersetErrorException
|
||||
|
||||
|
||||
class DatabaseInvalidError(CommandInvalidError):
|
||||
@@ -134,3 +135,7 @@ class DatabaseTestConnectionUnexpectedError(DatabaseTestConnectionFailedError):
|
||||
|
||||
class DatabaseImportError(ImportFailedError):
|
||||
message = _("Import database failed for an unknown reason")
|
||||
|
||||
|
||||
class DatabaseTestConnectionNetworkError(SupersetErrorException):
|
||||
status = 400
|
||||
|
||||
Reference in New Issue
Block a user