diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-08 16:03:34 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-08 16:04:28 +0900 |
commit | 5337a2165365b1fd9d49cbd791b0b7960c78647b (patch) | |
tree | cc9f007895e25f457c36b0eb3647a0c0c38c8b89 /lib/plum/stream.rb | |
parent | 0c1db0fb1db8f66d627c5e24ba538a8f80d091d1 (diff) | |
download | plum-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.rb | 4 |
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) |