You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2014/01/08 22:58:21 UTC

svn commit: r1556648 - /hive/trunk/service/src/java/org/apache/hive/service/cli/HiveSQLException.java

Author: thejas
Date: Wed Jan  8 21:58:20 2014
New Revision: 1556648

URL: http://svn.apache.org/r1556648
Log:
HIVE-6154 : HiveServer2 returns a detailed error message to the client only when the underlying exception is a HiveSQLException (Vaibhav Gumashta via Thejas Nair)

Modified:
    hive/trunk/service/src/java/org/apache/hive/service/cli/HiveSQLException.java

Modified: hive/trunk/service/src/java/org/apache/hive/service/cli/HiveSQLException.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/java/org/apache/hive/service/cli/HiveSQLException.java?rev=1556648&r1=1556647&r2=1556648&view=diff
==============================================================================
--- hive/trunk/service/src/java/org/apache/hive/service/cli/HiveSQLException.java (original)
+++ hive/trunk/service/src/java/org/apache/hive/service/cli/HiveSQLException.java Wed Jan  8 21:58:20 2014
@@ -118,6 +118,7 @@ public class HiveSQLException extends SQ
       return ((HiveSQLException)e).toTStatus();
     }
     TStatus tStatus = new TStatus(TStatusCode.ERROR_STATUS);
+    tStatus.setErrorMessage(e.getMessage());
     return tStatus;
   }