mirror of https://github.com/apache/superset.git
[bugfix] Presto KeyError 'errorLocation' (#3291)
This commit is contained in:
parent
9fcd5d67e4
commit
84e59a11f1
|
@ -497,9 +497,9 @@ class PrestoEngineSpec(BaseEngineSpec):
|
||||||
isinstance(e.orig[0], dict)):
|
isinstance(e.orig[0], dict)):
|
||||||
error_dict = e.orig[0]
|
error_dict = e.orig[0]
|
||||||
return '{} at {}: {}'.format(
|
return '{} at {}: {}'.format(
|
||||||
error_dict['errorName'],
|
error_dict.get('errorName'),
|
||||||
error_dict['errorLocation'],
|
error_dict.get('errorLocation'),
|
||||||
error_dict['message']
|
error_dict.get('message'),
|
||||||
)
|
)
|
||||||
return utils.error_msg_from_exception(e)
|
return utils.error_msg_from_exception(e)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue