Skip to content

Commit

Permalink
[improve][broker] Optimize web interface deleteDynamicConfiguration r…
Browse files Browse the repository at this point in the history
…eturn error message (apache#22356)
  • Loading branch information
hanmz authored and Technoboy- committed Apr 1, 2024
1 parent 33b742a commit 7ba7af9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ private CompletableFuture<Void> healthCheckRecursiveReadNext(Reader<String> read

private CompletableFuture<Void> internalDeleteDynamicConfigurationOnMetadataAsync(String configName) {
if (!pulsar().getBrokerService().isDynamicConfiguration(configName)) {
throw new RestException(Status.PRECONDITION_FAILED, " Can't update non-dynamic configuration");
throw new RestException(Status.PRECONDITION_FAILED, "Can't delete non-dynamic configuration");
} else {
return dynamicConfigurationResources().setDynamicConfigurationAsync(old -> {
if (old != null) {
Expand Down

0 comments on commit 7ba7af9

Please sign in to comment.