forked from quic-go/quic-go
include the frame type in the error returned by the frame parser
This commit is contained in:
@@ -273,7 +273,7 @@ var _ = Describe("Frame parsing", func() {
|
||||
|
||||
It("errors on invalid type", func() {
|
||||
_, err := parser.ParseNext(bytes.NewReader([]byte{0x42}), protocol.Encryption1RTT)
|
||||
Expect(err).To(MatchError("FRAME_ENCODING_ERROR: unknown type byte 0x42"))
|
||||
Expect(err).To(MatchError("FRAME_ENCODING_ERROR (frame type: 0x42): unknown frame type"))
|
||||
})
|
||||
|
||||
It("errors on invalid frames", func() {
|
||||
|
||||
Reference in New Issue
Block a user