Browse Source

fixed error message

pull/11565/head
IrynaMatveieva 2 years ago
parent
commit
ea5519893b
  1. 2
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/mqtt/TbMqttNode.java

2
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/mqtt/TbMqttNode.java

@ -152,7 +152,7 @@ public class TbMqttNode extends TbAbstractExternalNode {
this.mqttNodeConfiguration.getClientId() + "_" + ctx.getServiceId() : this.mqttNodeConfiguration.getClientId() + "_" + ctx.getServiceId() :
this.mqttNodeConfiguration.getClientId(); this.mqttNodeConfiguration.getClientId();
if (clientId.length() > 23) { if (clientId.length() > 23) {
throw new TbNodeException("Client ID was too long '" + clientId + "'. " + throw new TbNodeException("Client ID is too long '" + clientId + "'. " +
"The length of Client ID cannot be longer than 23, but current length is " + clientId.length() + ".", true); "The length of Client ID cannot be longer than 23, but current length is " + clientId.length() + ".", true);
} }
return clientId; return clientId;

Loading…
Cancel
Save