mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
[sqllab] Fix sql lab resolution link (#5216)
* pass link * update frontend to show link differently * nits
This commit is contained in:
@@ -152,9 +152,6 @@ 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
|
||||
@@ -163,6 +160,8 @@ def execute_sql(
|
||||
'status': query.status,
|
||||
'error': msg,
|
||||
})
|
||||
if troubleshooting_link:
|
||||
payload['link'] = troubleshooting_link
|
||||
return payload
|
||||
|
||||
if store_results and not results_backend:
|
||||
|
||||
Reference in New Issue
Block a user