merlimat commented on code in PR #25503:
URL: https://github.com/apache/pulsar/pull/25503#discussion_r3066440545


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java:
##########
@@ -142,7 +142,7 @@ protected CompletableFuture<List<String>> 
internalGetTenantNamespaces(String ten
                 .thenCompose(__ -> tenantResources().tenantExistsAsync(tenant))
                 .thenCompose(existed -> {
                     if (!existed) {
-                        throw new RestException(Status.NOT_FOUND, "Tenant not 
found");
+                        throw new RestException(Status.NOT_FOUND, "Tenant not 
found: " + tenant);

Review Comment:
   👍 This makes sense. 
   
   My main concern for including in the response was that we have so many of 
these return error messages, and we should be consistent in what we return :) 



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

Reply via email to