lib/http/2/stream.rb in http-2-0.6.1 vs lib/http/2/stream.rb in http-2-0.6.3

- old
+ new

@@ -465,10 +465,10 @@ def stream_error(error = :stream_error, msg: nil) @error = error close(error) if @state != :closed klass = error.to_s.split('_').map(&:capitalize).join - raise Kernel.const_get(klass).new(msg) + raise Error.const_get(klass).new(msg) end end end