chore: fix typos

This commit is contained in:
firest 2023-08-30 11:22:09 +08:00
parent 6722722522
commit 804443ba40
3 changed files with 3 additions and 3 deletions

View File

@ -473,7 +473,7 @@ parse_packet(
{Properties, <<>>} = parse_properties(Rest, ?MQTT_PROTO_V5, StrictMode),
#mqtt_packet_auth{reason_code = ReasonCode, properties = Properties};
parse_packet(Header, _FrameBin, _Options) ->
?PARSE_ERR(#{hit => malformed_packet, header_type => Header#mqtt_packet_header.type}).
?PARSE_ERR(#{hint => malformed_packet, header_type => Header#mqtt_packet_header.type}).
parse_will_message(
Packet = #mqtt_packet_connect{

View File

@ -546,7 +546,7 @@ t_parse_incoming_frame_error(_) ->
{incoming,
{frame_error, #{
header_type := _,
hit := malformed_packet
hint := malformed_packet
}}}
],
Packets

View File

@ -1 +1 @@
Improve some error reasons for parsing with invalid packets.
Improve some error reasons when parsing invalid packets.