Return-Path: X-Original-To: apmail-tajo-commits-archive@minotaur.apache.org Delivered-To: apmail-tajo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2AE517D67 for ; Tue, 12 May 2015 03:14:01 +0000 (UTC) Received: (qmail 38578 invoked by uid 500); 12 May 2015 03:14:01 -0000 Delivered-To: apmail-tajo-commits-archive@tajo.apache.org Received: (qmail 38468 invoked by uid 500); 12 May 2015 03:14:01 -0000 Mailing-List: contact commits-help@tajo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.apache.org Delivered-To: mailing list commits@tajo.apache.org Received: (qmail 37914 invoked by uid 99); 12 May 2015 03:14:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2015 03:14:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D247FE1789; Tue, 12 May 2015 03:14:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jihoonson@apache.org To: commits@tajo.apache.org Date: Tue, 12 May 2015 03:14:08 -0000 Message-Id: <817c60c6c801480b8fba9d66670ddd75@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [09/14] tajo git commit: Add error log message to exception. Add error log message to exception. Project: http://git-wip-us.apache.org/repos/asf/tajo/repo Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/70df3a8d Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/70df3a8d Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/70df3a8d Branch: refs/heads/index_support Commit: 70df3a8d2a5d6b6cef5ae233a546d8a405780964 Parents: d9776b3 Author: Hyunsik Choi Authored: Sun May 10 21:38:02 2015 -0700 Committer: Hyunsik Choi Committed: Sun May 10 21:38:02 2015 -0700 ---------------------------------------------------------------------- .../tajo/plan/function/python/PythonScriptEngine.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tajo/blob/70df3a8d/tajo-plan/src/main/java/org/apache/tajo/plan/function/python/PythonScriptEngine.java ---------------------------------------------------------------------- diff --git a/tajo-plan/src/main/java/org/apache/tajo/plan/function/python/PythonScriptEngine.java b/tajo-plan/src/main/java/org/apache/tajo/plan/function/python/PythonScriptEngine.java index 49dce87..8980de1 100644 --- a/tajo-plan/src/main/java/org/apache/tajo/plan/function/python/PythonScriptEngine.java +++ b/tajo-plan/src/main/java/org/apache/tajo/plan/function/python/PythonScriptEngine.java @@ -478,7 +478,7 @@ public class PythonScriptEngine extends TajoScriptEngine { try { result = outputHandler.getNext().get(0); } catch (Exception e) { - throw new RuntimeException("Problem getting output", e); + throw new RuntimeException("Problem getting output: " + e.getMessage(), e); } return result; @@ -512,7 +512,7 @@ public class PythonScriptEngine extends TajoScriptEngine { try { outputHandler.getNext(); } catch (Exception e) { - throw new RuntimeException("Problem getting output", e); + throw new RuntimeException("Problem getting output: " + e.getMessage(), e); } } @@ -532,7 +532,7 @@ public class PythonScriptEngine extends TajoScriptEngine { try { outputHandler.getNext(); } catch (Exception e) { - throw new RuntimeException("Problem getting output", e); + throw new RuntimeException("Problem getting output: " + e.getMessage(), e); } } @@ -552,7 +552,7 @@ public class PythonScriptEngine extends TajoScriptEngine { try { outputHandler.getNext(functionContext); } catch (Exception e) { - throw new RuntimeException("Problem getting output", e); + throw new RuntimeException("Problem getting output: " + e.getMessage(), e); } } @@ -573,7 +573,7 @@ public class PythonScriptEngine extends TajoScriptEngine { try { return outputHandler.getPartialResultString(); } catch (Exception e) { - throw new RuntimeException("Problem getting output", e); + throw new RuntimeException("Problem getting output: " + e.getMessage(), e); } } @@ -595,7 +595,7 @@ public class PythonScriptEngine extends TajoScriptEngine { try { result = outputHandler.getNext().get(0); } catch (Exception e) { - throw new RuntimeException("Problem getting output", e); + throw new RuntimeException("Problem getting output: " + e.getMessage(), e); } return result;