justinmclean commented on code in PR #6573:
URL: https://github.com/apache/gravitino/pull/6573#discussion_r1976571046


##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/CreateTable.java:
##########
@@ -82,27 +82,47 @@ public void handle() {
       client = buildClient(metalake);
     } catch (NoSuchMetalakeException err) {
       exitWithError(ErrorMessages.UNKNOWN_METALAKE);
+      return; // Stop execution
     } catch (Exception exp) {
       exitWithError("Error initializing client or table name: " + 
exp.getMessage());
+      return;

Review Comment:
   Please remove the unneeded return statements. This is inconsistent with 
other files here.



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to