feat(SQL Lab): better SQL parsing error messages (#30501)

This commit is contained in:
Beto Dealmeida
2024-10-04 19:17:56 -04:00
committed by GitHub
parent 95325c4673
commit a098809294
6 changed files with 226 additions and 14 deletions

View File

@@ -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();
}