You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by pr...@apache.org on 2010/01/27 23:08:30 UTC
svn commit: r903863 -
/hadoop/pig/branches/load-store-redesign/src/org/apache/pig/impl/util/LogUtils.java
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