lib/http/protocol/http2/flow_control.rb in http-protocol-0.2.0 vs lib/http/protocol/http2/flow_control.rb in http-protocol-0.2.1

- old
+ new

@@ -43,10 +43,10 @@ if amount.zero? and frame.end_stream? # It's okay, we can send. No need to consume, it's empty anyway. elsif amount >= 0 and amount <= @remote_window.available @remote_window.consume(amount) else - raise FlowControlError, "Trying to send #{frame.inspect}, exceeded window size: #{@remote_window.available}" + raise FlowControlError, "Trying to send #{frame.length} bytes, exceeded window size: #{@remote_window.available} (#{@remote_window})" end end def consume_local_window(frame) amount = frame.length