mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
fix: Matching errorType on superset api error with SupersetError (#34261)
This commit is contained in:
@@ -54,7 +54,8 @@ export function ErrorMessageWithStackTrace({
|
||||
// Check if a custom error message component was registered for this message
|
||||
if (error) {
|
||||
const ErrorMessageComponent = getErrorMessageComponentRegistry().get(
|
||||
error.error_type,
|
||||
// @ts-ignore: plan to modify this part so that all errors in Superset 6.0 are standardized as Superset API error types
|
||||
error.errorType ?? error.error_type,
|
||||
);
|
||||
if (ErrorMessageComponent) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user