Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BDA3D200CE6 for ; Thu, 17 Aug 2017 02:40:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BBD26169F3B; Thu, 17 Aug 2017 00:40:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0E344169F38 for ; Thu, 17 Aug 2017 02:40:31 +0200 (CEST) Received: (qmail 59901 invoked by uid 500); 17 Aug 2017 00:40:31 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 59892 invoked by uid 99); 17 Aug 2017 00:40:31 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2017 00:40:31 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id AEFAE812E9; Thu, 17 Aug 2017 00:40:30 +0000 (UTC) Date: Thu, 17 Aug 2017 00:40:30 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: [hive] improve error messages (#3305) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150293043058.321.10725400869736480858@gitbox.apache.org> From: maximebeauchemin@apache.org Reply-To: "commits@superset.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: fbd0d46e8ab8e2928a5e5971679c3a2def98ed87 X-Git-Newrev: 0aa3d2a81853eb362ae84dfc6acd7fa309de4173 X-Git-Rev: 0aa3d2a81853eb362ae84dfc6acd7fa309de4173 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Thu, 17 Aug 2017 00:40:32 -0000 This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 0aa3d2a [hive] improve error messages (#3305) 0aa3d2a is described below commit 0aa3d2a81853eb362ae84dfc6acd7fa309de4173 Author: Maxime Beauchemin AuthorDate: Wed Aug 16 17:40:28 2017 -0700 [hive] improve error messages (#3305) * [hive] improve error messages * Addressing comments --- superset/db_engine_specs.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index 5f67ec6..0fe9889 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -682,6 +682,14 @@ class HiveEngineSpec(PrestoEngineSpec): 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 current_job = 1 -- To stop receiving notification emails like this one, please contact ['"commits@superset.apache.org" '].