Merge pull request #22449 from dnagir/database_connection_message

Explain the connection pool error message better [ci skip]
This commit is contained in:
Yves Senn 2015-12-01 08:35:12 +01:00
commit 208911e4c0
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ module ActiveRecord
elapsed = Time.now - t0
if elapsed >= timeout
msg = 'could not obtain a database connection within %0.3f seconds (waited %0.3f seconds)' %
msg = 'could not obtain a connection from the pool within %0.3f seconds (waited %0.3f seconds); all pooled connections were in use' %
[timeout, elapsed]
raise ConnectionTimeoutError, msg
end