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 /examples/non_tls_server.rb | |
parent | 0c1db0fb1db8f66d627c5e24ba538a8f80d091d1 (diff) | |
download | plum-5337a2165365b1fd9d49cbd791b0b7960c78647b.tar.gz |
style: use $! if possibletopic/fix-coding-style
Use $! when rescuing StandardError.
Diffstat (limited to 'examples/non_tls_server.rb')
-rw-r--r-- | examples/non_tls_server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/non_tls_server.rb b/examples/non_tls_server.rb index 887cd82..e481b05 100644 --- a/examples/non_tls_server.rb +++ b/examples/non_tls_server.rb @@ -21,8 +21,8 @@ loop do sock = tcp_server.accept id = sock.fileno puts "#{id}: accept!" - rescue => e - STDERR.puts e + rescue + STDERR.puts $! next end |