Skip to content

Commit

Permalink
[hive] improve error messages (#3305)
Browse files Browse the repository at this point in the history
* [hive] improve error messages

* Addressing comments
  • Loading branch information
mistercrunch authored Aug 17, 2017
1 parent fbd0d46 commit 0aa3d2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,14 @@ def adjust_database_uri(cls, uri, selected_schema=None):
uri.database = selected_schema
return uri

@classmethod
def extract_error_message(cls, e):
try:
msg = e.message.status.errorMessage
except:
msg = str(e)
return msg

@classmethod
def progress(cls, log_lines):
total_jobs = 1 # assuming there's at least 1 job
Expand Down

0 comments on commit 0aa3d2a

Please sign in to comment.