mirror of
https://github.com/apache/superset.git
synced 2026-05-11 02:45:46 +00:00
fix: improve error type on parse error (#33048)
(cherry picked from commit ed0cd5e7b0)
This commit is contained in:
committed by
Michael S. Molina
parent
f85f3f8b56
commit
e0e2d329e0
@@ -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