Skip to content

Commit

Permalink
fixup! Show Generic Error for Charts & Query View in old UI
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxil committed Nov 20, 2020
1 parent e95c499 commit b606b87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/www/views.py
Expand Up @@ -472,6 +472,7 @@ def chart_data(self):
wwwutils.limit_sql(sql, CHART_LIMIT, conn_type=db.conn_type))
df = df.fillna(0)
except Exception:
log.exception("Chart SQL execution failed")
payload['error'] += "SQL execution failed. Contact your System Administrator for more details"

if csv:
Expand Down Expand Up @@ -2399,6 +2400,7 @@ class QueryForm(Form):
na_rep='',
) if has_data else ''
except Exception:
log.exception("Query SQL execution failed")
flash("SQL execution failed. Contact your System Administrator for more details", "error")
error = True

Expand Down

0 comments on commit b606b87

Please sign in to comment.