mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
feat: refactor error components and add database issue code (#10473)
* feat: refactor error components and add database issue code * Apply suggestions from code review Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com> Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
import getErrorMessageComponentRegistry from 'src/components/ErrorMessage/getErrorMessageComponentRegistry';
|
||||
import { ErrorTypeEnum } from 'src/components/ErrorMessage/types';
|
||||
import TimeoutErrorMessage from 'src/components/ErrorMessage/TimeoutErrorMessage';
|
||||
import DatabaseErrorMessage from 'src/components/ErrorMessage/DatabaseErrorMessage';
|
||||
|
||||
import setupErrorMessagesExtra from './setupErrorMessagesExtra';
|
||||
|
||||
@@ -33,5 +34,9 @@ export default function setupErrorMessages() {
|
||||
ErrorTypeEnum.BACKEND_TIMEOUT_ERROR,
|
||||
TimeoutErrorMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.GENERIC_DB_ENGINE_ERROR,
|
||||
DatabaseErrorMessage,
|
||||
);
|
||||
setupErrorMessagesExtra();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user