aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plum/stream.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-08 16:03:34 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-08 16:04:28 +0900
commit5337a2165365b1fd9d49cbd791b0b7960c78647b (patch)
treecc9f007895e25f457c36b0eb3647a0c0c38c8b89 /lib/plum/stream.rb
parent0c1db0fb1db8f66d627c5e24ba538a8f80d091d1 (diff)
downloadplum-topic/fix-coding-style.tar.gz
style: use $! if possibletopic/fix-coding-style
Use $! when rescuing StandardError.
Diffstat (limited to 'lib/plum/stream.rb')
-rw-r--r--lib/plum/stream.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plum/stream.rb b/lib/plum/stream.rb
index 3cf3ba1..823a41a 100644
--- a/lib/plum/stream.rb
+++ b/lib/plum/stream.rb
@@ -156,8 +156,8 @@ module Plum
begin
decoded_headers = @connection.hpack_decoder.decode(payload)
- rescue => e
- raise RemoteConnectionError.new(:compression_error, e)
+ rescue
+ raise RemoteConnectionError.new(:compression_error, $!)
end
callback(:headers, decoded_headers)