You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by br...@apache.org on 2013/12/06 17:52:42 UTC

svn commit: r1548597 - /hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java

Author: brock
Date: Fri Dec  6 16:52:42 2013
New Revision: 1548597

URL: http://svn.apache.org/r1548597
Log:
HIVE-5641 - BeeLineOpts ignores Throwable (Brock Noland reviewed by Prasad and Thejas)

Modified:
    hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java

Modified: hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java
URL: http://svn.apache.org/viewvc/hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java?rev=1548597&r1=1548596&r2=1548597&view=diff
==============================================================================
--- hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java (original)
+++ hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java Fri Dec  6 16:52:42 2013
@@ -138,7 +138,8 @@ class BeeLineOpts implements Completor {
   public int complete(String buf, int pos, List cand) {
     try {
       return new SimpleCompletor(propertyNames()).complete(buf, pos, cand);
-    } catch (Throwable t) {
+    } catch (Exception e) {
+      beeLine.handleException(e);
       return -1;
     }
   }