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

@@ -323,7 +323,7 @@ class SupersetParseError(SupersetErrorException):
if line:
parts.append(_(" at line %(line)d", line=line))
if column:
parts.append(_(":%(column)d", column=column))
parts.append(f":{column}")
message = "".join(parts)
error = SupersetError(