tengqm commented on code in PR #5907:
URL: https://github.com/apache/gravitino/pull/5907#discussion_r1894829308
##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/DeleteCatalog.java:
##########
@@ -64,6 +65,8 @@ public void handle() {
exitWithError(ErrorMessages.UNKNOWN_METALAKE);
} catch (NoSuchCatalogException err) {
exitWithError(ErrorMessages.UNKNOWN_CATALOG);
+ } catch (CatalogInUseException catalogInUseException) {
+ System.err.println(catalog + " in use, please use disable command
disable it first.");
Review Comment:
```suggestion
System.err.println(catalog + " in use, please disable it first.");
```
##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/DeleteMetalake.java:
##########
@@ -56,6 +57,8 @@ public void handle() {
deleted = client.dropMetalake(metalake);
} catch (NoSuchMetalakeException err) {
exitWithError(ErrorMessages.UNKNOWN_METALAKE);
+ } catch (MetalakeInUseException inUseException) {
+ System.err.println(metalake + " in use, please use disable command
disable it first.");
Review Comment:
```suggestion
System.err.println(metalake + " in use, please disable it first.");
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]