提交 ca5ffd10 编写于 作者: M Michael Koziarski

Handle connection timeouts with a slightly nicer error message.

上级 0d9e238c
...@@ -145,7 +145,7 @@ def checkout ...@@ -145,7 +145,7 @@ def checkout
if @queue.wait(@timeout) if @queue.wait(@timeout)
checkout_existing_connection checkout_existing_connection
else else
raise ConnectionTimeoutError, "could not obtain a database connection in a timely fashion" raise ConnectionTimeoutError, "could not obtain a database connection within #{@timeout} seconds. The pool size is currently #{@size}, perhaps you need to increase it?"
end end
end end
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册