diff options
Diffstat (limited to 'lib/mogilefs/socket_common.rb')
-rw-r--r-- | lib/mogilefs/socket_common.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mogilefs/socket_common.rb b/lib/mogilefs/socket_common.rb index 404acd0..a716d35 100644 --- a/lib/mogilefs/socket_common.rb +++ b/lib/mogilefs/socket_common.rb @@ -12,14 +12,15 @@ module MogileFS::SocketCommon self end - def unreadable_socket! + def unreadable_socket!(timeout) raise MogileFS::UnreadableSocketError, - "#@mogilefs_addr never became readable" + "#@mogilefs_addr never became readable (timeout=#{timeout.inspect})" end def request_truncated!(written, expect, timeout) + timeout = timeout.inspect raise MogileFS::RequestTruncatedError, - "request truncated (sent #{written} expected #{expect}) after #{timeout}s" + "request truncated (sent #{written} expected #{expect} timeout=#{timeout})" end SEP_RE = /\A(.*?#{Regexp.escape("\n")})/ |