From e03da9f3689dd8b5649e03aa4e39f0e7617894b5 Mon Sep 17 00:00:00 2001 From: "J. Madden" Date: Tue, 17 Oct 2023 16:27:58 +0200 Subject: [PATCH] Fix: Typo in log with an invalid message (#774) Typo in logof broker/src/main/java/io/moquette/broker/NettyUtils.java --- 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..a8183cbfd 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");