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 <[email protected]> Authored: Sun May 10 21:38:02 2015 -0700 Committer: Hyunsik Choi <[email protected]> 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;
