Skip to content

Instantly share code, notes, and snippets.

@arthurnn
Created October 14, 2013 16:32
Show Gist options
  • Save arthurnn/6978381 to your computer and use it in GitHub Desktop.
Save arthurnn/6978381 to your computer and use it in GitHub Desktop.
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