mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
fix: allow for backward compatible errors (#25640)
This commit is contained in:
committed by
GitHub
parent
bda43ac0f6
commit
ed14f36c55
@@ -107,12 +107,3 @@ export type ErrorMessageComponentProps<ExtraType = Record<string, any> | null> =
|
||||
|
||||
export type ErrorMessageComponent =
|
||||
React.ComponentType<ErrorMessageComponentProps>;
|
||||
|
||||
/* Generic error to be returned when the backend returns an error response that is not
|
||||
* SIP-41 compliant. */
|
||||
export const genericSupersetError = (extra: object) => ({
|
||||
error_type: ErrorTypeEnum.GENERIC_BACKEND_ERROR,
|
||||
extra,
|
||||
level: 'error' as ErrorLevel,
|
||||
message: 'An error occurred',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user