Skip to content

Commit

Permalink
Fix: Typo in log with an invalid message
Browse files Browse the repository at this point in the history
  • Loading branch information
j-madden authored and andsel committed Oct 17, 2023
1 parent e06d1de commit d3f17ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broker/src/main/java/io/moquette/broker/NettyUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static String userName(Channel channel) {
public static MqttMessage validateMessage(Object message) throws IOException, ClassCastException {
MqttMessage msg = (MqttMessage) message;
if (msg.decoderResult() != null && msg.decoderResult().isFailure()) {
throw new IOException("invalid massage", msg.decoderResult().cause());
throw new IOException("invalid message", msg.decoderResult().cause());
}
if (msg.fixedHeader() == null) {
throw new IOException("Unknown packet, no fixedHeader present, no cause provided");
Expand Down

0 comments on commit d3f17ac

Please sign in to comment.