You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/04/03 18:51:27 UTC

[GitHub] [incubator-pinot] mayankshriv commented on a change in pull request #4065: Exit 1 when caught exception in Pinot Admin command.

mayankshriv commented on a change in pull request #4065: Exit 1 when caught exception in Pinot Admin command.
URL: https://github.com/apache/incubator-pinot/pull/4065#discussion_r271883667
 
 

 ##########
 File path: pinot-tools/src/main/java/org/apache/pinot/tools/admin/PinotAdministrator.java
 ##########
 @@ -102,10 +102,13 @@ public void execute(String[] args)
     }
   }
 
-  public static void main(String[] args)
-      throws Exception {
+  public static void main(String[] args) {
     PinotAdministrator pinotAdministrator = new PinotAdministrator();
-    pinotAdministrator.execute(args);
+    try {
+      pinotAdministrator.execute(args);
+    } catch (Exception e) {
+      System.exit(1);
 
 Review comment:
   May be log the message/exception?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org