mirror of
https://github.com/apache/superset.git
synced 2026-05-12 03:15:55 +00:00
feat: implement specific errors for SQL Lab (#15206)
* RESULTS_BACKEND_NOT_CONFIGURED_ERROR * DML_NOT_ALLOWED_ERROR * INVALID_CxAS_QUERY_ERROR * Fix lint * Add more tests
This commit is contained in:
@@ -51,6 +51,22 @@ export default function setupErrorMessages() {
|
||||
ErrorTypeEnum.MISSING_TEMPLATE_PARAMS_ERROR,
|
||||
ParameterErrorMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.RESULTS_BACKEND_NOT_CONFIGURED_ERROR,
|
||||
DatabaseErrorMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.DML_NOT_ALLOWED_ERROR,
|
||||
DatabaseErrorMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.INVALID_CTAS_QUERY_ERROR,
|
||||
DatabaseErrorMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.INVALID_CVAS_QUERY_ERROR,
|
||||
DatabaseErrorMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.CONNECTION_INVALID_HOSTNAME_ERROR,
|
||||
DatabaseErrorMessage,
|
||||
|
||||
Reference in New Issue
Block a user