falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suh...@apache.org
Subject falcon git commit: FALCON-1123 Stacktrace printed by Falcon CLI is not useful to user. Contributed by Pallavi Rao
Date Thu, 26 Mar 2015 19:55:48 GMT
Repository: falcon
Updated Branches:
  refs/heads/master 2eaaa4b20 -> 64fdab50d


FALCON-1123 Stacktrace printed by Falcon CLI is not useful to user. Contributed by Pallavi
Rao


Project: http://git-wip-us.apache.org/repos/asf/falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/falcon/commit/64fdab50
Tree: http://git-wip-us.apache.org/repos/asf/falcon/tree/64fdab50
Diff: http://git-wip-us.apache.org/repos/asf/falcon/diff/64fdab50

Branch: refs/heads/master
Commit: 64fdab50d11c2fd9635738d586a17453791b5717
Parents: 2eaaa4b
Author: Suhas Vasu <suhas.v@inmobi.com>
Authored: Fri Mar 27 01:25:29 2015 +0530
Committer: Suhas Vasu <suhas.v@inmobi.com>
Committed: Fri Mar 27 01:25:29 2015 +0530

----------------------------------------------------------------------
 CHANGES.txt                                               | 3 +++
 client/src/main/java/org/apache/falcon/cli/FalconCLI.java | 3 +++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/64fdab50/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index afd7266..ec0b6ca 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -117,6 +117,9 @@ Trunk (Unreleased)
    (Suhas vasu)
 
   BUG FIXES
+   FALCON-1123 Stacktrace printed by Falcon CLI is not useful to user
+   (Pallavi Rao via Suhas Vasu)
+
    FALCON-1117 Falcon Client throws NPE on no emtpy result in
    reverse lookup (Ajay Yadava via Suhas Vasu)
 

http://git-wip-us.apache.org/repos/asf/falcon/blob/64fdab50/client/src/main/java/org/apache/falcon/cli/FalconCLI.java
----------------------------------------------------------------------
diff --git a/client/src/main/java/org/apache/falcon/cli/FalconCLI.java b/client/src/main/java/org/apache/falcon/cli/FalconCLI.java
index ab34856..958ea62 100644
--- a/client/src/main/java/org/apache/falcon/cli/FalconCLI.java
+++ b/client/src/main/java/org/apache/falcon/cli/FalconCLI.java
@@ -208,6 +208,9 @@ public class FalconCLI {
             ERR.get().println("Stacktrace:");
             ex.printStackTrace();
             return -1;
+        } catch (FalconCLIException e) {
+            ERR.get().println("ERROR: " + e.getMessage());
+            return -1;
         } catch (Exception ex) {
             ERR.get().println("Stacktrace:");
             ex.printStackTrace();


Mime
View raw message