This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new e662715e1 [ISSUE #5897] Polish exception info when broker has already 
been added to broker container (#5898)
e662715e1 is described below

commit e662715e13a71758ba564a402ce2131f087e76af
Author: Oliver <[email protected]>
AuthorDate: Tue Jan 17 16:13:38 2023 +0800

    [ISSUE #5897] Polish exception info when broker has already been added to 
broker container (#5898)
---
 .../main/java/org/apache/rocketmq/container/BrokerContainer.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/container/src/main/java/org/apache/rocketmq/container/BrokerContainer.java 
b/container/src/main/java/org/apache/rocketmq/container/BrokerContainer.java
index 47ca8e704..74cfed4f3 100644
--- a/container/src/main/java/org/apache/rocketmq/container/BrokerContainer.java
+++ b/container/src/main/java/org/apache/rocketmq/container/BrokerContainer.java
@@ -312,7 +312,7 @@ public class BrokerContainer implements IBrokerContainer {
             }
             return brokerController;
         }
-        throw new Exception(brokerIdentity.getCanonicalName() + " has already 
been added to current broker");
+        throw new Exception(brokerIdentity.getCanonicalName() + " has already 
been added to current broker container");
     }
 
     public InnerBrokerController addMasterBroker(final BrokerConfig 
masterBrokerConfig,
@@ -350,7 +350,7 @@ public class BrokerContainer implements IBrokerContainer {
             }
             return masterBroker;
         }
-        throw new Exception(masterBrokerConfig.getCanonicalName() + " has 
already been added to current broker");
+        throw new Exception(masterBrokerConfig.getCanonicalName() + " has 
already been added to current broker container");
     }
 
     /**
@@ -395,7 +395,7 @@ public class BrokerContainer implements IBrokerContainer {
             }
             return slaveBroker;
         }
-        throw new Exception(slaveBrokerConfig.getCanonicalName() + " has 
already been added to current broker");
+        throw new Exception(slaveBrokerConfig.getCanonicalName() + " has 
already been added to current broker container");
     }
 
     @Override

Reply via email to