mirror of
https://github.com/apache/superset.git
synced 2026-04-16 06:34:52 +00:00
[explore] show the broken query when failing (#1871)
* Return query when failing * Linting * sjson -> simplejson
This commit is contained in:
committed by
GitHub
parent
e3b296c558
commit
c14c7edc5e
@@ -142,7 +142,13 @@ class ChartContainer extends React.Component {
|
||||
},
|
||||
|
||||
error(msg) {
|
||||
props.actions.chartUpdateFailed(msg);
|
||||
let payload = { error: msg };
|
||||
try {
|
||||
payload = JSON.parse(msg);
|
||||
} catch (e) {
|
||||
// pass
|
||||
}
|
||||
props.actions.chartUpdateFailed(payload.error, payload.query);
|
||||
},
|
||||
|
||||
d3format: (col, number) => {
|
||||
|
||||
Reference in New Issue
Block a user