tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hyun...@apache.org
Subject [6/7] tajo git commit: Add error log message to exception.
Date Mon, 11 May 2015 22:30:32 GMT
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/master
Commit: 70df3a8d2a5d6b6cef5ae233a546d8a405780964
Parents: d9776b3
Author: Hyunsik Choi <hyunsik@apache.org>
Authored: Sun May 10 21:38:02 2015 -0700
Committer: Hyunsik Choi <hyunsik@apache.org>
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;


Mime
View raw message