mirror of
https://github.com/github/rails.git
synced 2026-01-26 14:58:11 -05:00
Handle connection timeouts with a slightly nicer error message.
This commit is contained in:
@@ -145,7 +145,7 @@ module ActiveRecord
|
||||
if @queue.wait(@timeout)
|
||||
checkout_existing_connection
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user