mirror of
https://github.com/apache/superset.git
synced 2026-04-17 07:05:04 +00:00
fix: improve error type on parse error (#33048)
This commit is contained in:
@@ -272,7 +272,7 @@ class ParsedQuery:
|
||||
logger.warning("Unable to parse SQL (%s): %s", self._dialect, self.sql)
|
||||
raise SupersetSecurityException(
|
||||
SupersetError(
|
||||
error_type=SupersetErrorType.QUERY_SECURITY_ACCESS_ERROR,
|
||||
error_type=SupersetErrorType.INVALID_SQL_ERROR,
|
||||
message=__(
|
||||
"You may have an error in your SQL statement. {message}"
|
||||
).format(message=ex.error.message),
|
||||
|
||||
Reference in New Issue
Block a user