pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pradeep...@apache.org
Subject svn commit: r903863 - /hadoop/pig/branches/load-store-redesign/src/org/apache/pig/impl/util/LogUtils.java
Date Wed, 27 Jan 2010 22:08:30 GMT
Author: pradeepkth
Date: Wed Jan 27 22:08:30 2010
New Revision: 903863

URL: http://svn.apache.org/viewvc?rev=903863&view=rev
Log:
PIG-1090: additional patch to revert a change in Logging so that we give a more detailed message
to user on failures (daijy via pradeepkth)

Modified:
    hadoop/pig/branches/load-store-redesign/src/org/apache/pig/impl/util/LogUtils.java

Modified: hadoop/pig/branches/load-store-redesign/src/org/apache/pig/impl/util/LogUtils.java
URL: http://svn.apache.org/viewvc/hadoop/pig/branches/load-store-redesign/src/org/apache/pig/impl/util/LogUtils.java?rev=903863&r1=903862&r2=903863&view=diff
==============================================================================
--- hadoop/pig/branches/load-store-redesign/src/org/apache/pig/impl/util/LogUtils.java (original)
+++ hadoop/pig/branches/load-store-redesign/src/org/apache/pig/impl/util/LogUtils.java Wed
Jan 27 22:08:30 2010
@@ -95,10 +95,7 @@
         PigException pigException = LogUtils.getPigException(t);
 
         if(pigException != null) {
-            if (pigException.getCause()!=null)
-                message = "ERROR " + pigException.getErrorCode() + ": " + pigException.getCause().getMessage();
-            else
-                message = "ERROR " + pigException.getErrorCode() + ": " + pigException.getMessage();
+            message = "ERROR " + pigException.getErrorCode() + ": " + pigException.getMessage();
         } else {
             if((t instanceof ParseException 
                     || t instanceof org.apache.pig.tools.pigscript.parser.TokenMgrError 



Mime
View raw message