mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat(SQL Lab): better SQL parsing error messages (#30501)
This commit is contained in:
@@ -23,6 +23,7 @@ import DatabaseErrorMessage from 'src/components/ErrorMessage/DatabaseErrorMessa
|
||||
import MarshmallowErrorMessage from 'src/components/ErrorMessage/MarshmallowErrorMessage';
|
||||
import ParameterErrorMessage from 'src/components/ErrorMessage/ParameterErrorMessage';
|
||||
import DatasetNotFoundErrorMessage from 'src/components/ErrorMessage/DatasetNotFoundErrorMessage';
|
||||
import InvalidSQLErrorMessage from 'src/components/ErrorMessage/InvalidSQLErrorMessage';
|
||||
import OAuth2RedirectMessage from 'src/components/ErrorMessage/OAuth2RedirectMessage';
|
||||
|
||||
import setupErrorMessagesExtra from './setupErrorMessagesExtra';
|
||||
@@ -154,5 +155,9 @@ export default function setupErrorMessages() {
|
||||
ErrorTypeEnum.OAUTH2_REDIRECT,
|
||||
OAuth2RedirectMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.INVALID_SQL_ERROR,
|
||||
InvalidSQLErrorMessage,
|
||||
);
|
||||
setupErrorMessagesExtra();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user