mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Sqllab error troubleshooting (#3680)
* provide troubleshooting link * add option to append error troubleshooting link beneath sqllab error
This commit is contained in:
committed by
Maxime Beauchemin
parent
d0b5b449b2
commit
d4d4a9b1f1
@@ -118,6 +118,10 @@ def execute_sql(
|
||||
|
||||
def handle_error(msg):
|
||||
"""Local method handling error while processing the SQL"""
|
||||
troubleshooting_link = config["TROUBLESHOOTING_LINK"]
|
||||
msg = "Error: {}. You can find common superset errors and their \
|
||||
resolutions at: {}".format(msg, troubleshooting_link) \
|
||||
if troubleshooting_link else msg
|
||||
query.error_message = msg
|
||||
query.status = QueryStatus.FAILED
|
||||
query.tmp_table_name = None
|
||||
|
||||
Reference in New Issue
Block a user