diff options
author | Wild Kat <wk@futureinquestion.net> | 2018-04-27 17:11:42 +0200 |
---|---|---|
committer | Wild Kat <wk@futureinquestion.net> | 2018-04-27 17:11:42 +0200 |
commit | ae9c7c2a65d65bea136669bc9cbc2d645841a017 (patch) | |
tree | 0979993d8976009ce915e8df9ec6c49da09781f5 /lib/oxidized/input | |
parent | 1311573a1adff6edf2c0b3cfdb05ca83d6c46e73 (diff) |
transition from TimeoutError to Timeout::Error
Diffstat (limited to 'lib/oxidized/input')
-rw-r--r-- | lib/oxidized/input/telnet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb index 4371e26..b1b3222 100644 --- a/lib/oxidized/input/telnet.rb +++ b/lib/oxidized/input/telnet.rb @@ -102,7 +102,7 @@ class Net::Telnet rest = '' until prompt === line and not IO::select([@sock], nil, nil, waittime) unless IO::select([@sock], nil, nil, time_out) - raise TimeoutError, "timed out while waiting for more data" + raise Timeout::Error, "timed out while waiting for more data" end begin c = @sock.readpartial(1024 * 1024) |