Created
October 14, 2013 16:32
-
-
Save arthurnn/6978381 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/moped/connection/queue.rb b/lib/moped/connection/queue.rb | |
index fe3a336..82fc666 100644 | |
--- a/lib/moped/connection/queue.rb | |
+++ b/lib/moped/connection/queue.rb | |
@@ -84,7 +84,7 @@ module Moped | |
loop do | |
return queue.pop unless queue.empty? | |
wait = deadline - Time.now | |
- raise Timeout::Error, "Waited for item but none was pushed." if wait <= 0 | |
+ raise Timeout::Error, "Waited for item but none was pushed. [thread list: #{Thread.list}, current: #{Thread.current.object_id}]" if wait <= 0 | |
resource.wait(mutex, wait) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment