Skip to content

Commit e7d930f

Browse files
TheRealHauiTheRealHaui
andauthored
Fixed error message of CommandUtil.fetchMasterAddrByBrokerName (#9825)
Co-authored-by: TheRealHaui <michael.hausegger@hausegger.tech>
1 parent 455305a commit e7d930f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/src/main/java/org/apache/rocketmq/tools/command/CommandUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static String fetchMasterAddrByBrokerName(final MQAdminExt adminExt,
144144
return addr;
145145
}
146146
}
147-
throw new Exception(String.format("No broker address for broker name %s.%n", brokerData));
147+
throw new Exception(String.format("No broker address for broker name %s.", brokerName));
148148
}
149149

150150
public static Set<String> fetchMasterAndSlaveAddrByBrokerName(final MQAdminExt adminExt, final String brokerName)

0 commit comments

Comments
 (0)