lib/http/protocol/http2/frame.rb in http-protocol-0.10.0 vs lib/http/protocol/http2/frame.rb in http-protocol-0.10.1

- old
+ new

@@ -161,10 +161,10 @@ def read(stream, maximum_frame_size = MAXIMUM_ALLOWED_FRAME_SIZE) read_header(stream) unless @length if @length > maximum_frame_size - raise FrameSizeError, "Frame length #{@length} exceeds maximum frame size #{maximum_frame_size}!" + raise FrameSizeError, "#{self.class} (type=#{@type}) frame length #{@length} exceeds maximum frame size #{maximum_frame_size}!" end read_payload(stream) end