summaryrefslogtreecommitdiff
path: root/internal/packet/packet.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/packet/packet.go')
-rw-r--r--internal/packet/packet.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/packet/packet.go b/internal/packet/packet.go
index f38ad14..9365d93 100644
--- a/internal/packet/packet.go
+++ b/internal/packet/packet.go
@@ -239,7 +239,7 @@ func (f *PacketFramer) parse() (*Packet, error) {
}
if f.buffer[VERSION_OFFSET] != VERSION {
- return nil, fmt.Errorf("%w version=%v", PacketUnsupportedVersion, f.buffer[VERSION_OFFSET])
+ return nil, PacketUnsupportedVersion
}
encoding := Encoding(f.buffer[ENCODING_OFFSET] >> 6)