mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat: generic marshmallow error component (#25303)
This commit is contained in:
@@ -20,6 +20,7 @@ import getErrorMessageComponentRegistry from 'src/components/ErrorMessage/getErr
|
||||
import { ErrorTypeEnum } from 'src/components/ErrorMessage/types';
|
||||
import TimeoutErrorMessage from 'src/components/ErrorMessage/TimeoutErrorMessage';
|
||||
import DatabaseErrorMessage from 'src/components/ErrorMessage/DatabaseErrorMessage';
|
||||
import MarshmallowErrorMessage from 'src/components/ErrorMessage/MarshmallowErrorMessage';
|
||||
import ParameterErrorMessage from 'src/components/ErrorMessage/ParameterErrorMessage';
|
||||
import DatasetNotFoundErrorMessage from 'src/components/ErrorMessage/DatasetNotFoundErrorMessage';
|
||||
|
||||
@@ -144,5 +145,9 @@ export default function setupErrorMessages() {
|
||||
ErrorTypeEnum.FAILED_FETCHING_DATASOURCE_INFO_ERROR,
|
||||
DatasetNotFoundErrorMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.MARSHMALLOW_ERROR,
|
||||
MarshmallowErrorMessage,
|
||||
);
|
||||
setupErrorMessagesExtra();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user