From d3f17ac06b4b981f0ec397fa4fe0a0e997500232 Mon Sep 17 00:00:00 2001 From: Jalal Madden Date: Mon, 28 Aug 2023 13:22:29 +0100 Subject: [PATCH] Fix: Typo in log with an invalid message --- broker/src/main/java/io/moquette/broker/NettyUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broker/src/main/java/io/moquette/broker/NettyUtils.java b/broker/src/main/java/io/moquette/broker/NettyUtils.java index bbbb8cfa7..7a8c9eea1 100644 --- a/broker/src/main/java/io/moquette/broker/NettyUtils.java +++ b/broker/src/main/java/io/moquette/broker/NettyUtils.java @@ -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");