Skip to content

Commit

Permalink
keep the detailed error message about the group
Browse files Browse the repository at this point in the history
  • Loading branch information
mawen12 committed Jan 24, 2025
1 parent 1742644 commit c712b62
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.apache.rocketmq.common.TopicConfig;
import org.apache.rocketmq.common.UtilAll;
import org.apache.rocketmq.common.constant.PermName;
import org.apache.rocketmq.common.help.FAQUrl;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.common.message.MessageConst;
import org.apache.rocketmq.common.topic.TopicValidator;
Expand All @@ -44,7 +45,7 @@ public class Validators {
*/
public static void checkGroup(String group) throws MQClientException {
if (UtilAll.isBlank(group)) {
throw new MQClientException("the specified group is blank", null);
throw new MQClientException("the specified group is blank" + FAQUrl.suggestTodo(FAQUrl.CLIENT_PARAMETER_CHECK_URL), null);
}

if (group.length() > CHARACTER_MAX_LENGTH) {
Expand Down

0 comments on commit c712b62

Please sign in to comment.