Improve error message for exception.

This commit is contained in:
deecay
2016-10-27 11:16:04 +09:00
parent c57c765688
commit 4ba7aa1fc0

View File

@@ -233,7 +233,7 @@ class Python(BaseQueryRunner):
error = "Query cancelled by user."
json_data = None
except Exception as e:
error = str(e)
error = str(type(e)) + " " + str(e)
json_data = None
return json_data, error