Skip to content

Commit

Permalink
fix TooManyConnections error wording. closes bitly#23
Browse files Browse the repository at this point in the history
  • Loading branch information
jehiah committed Oct 21, 2011
1 parent f930b62 commit 4123110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncmongo/pool.py
Expand Up @@ -109,7 +109,7 @@ def connection(self):
self._condition.acquire()
try:
if (self._maxconnections and self._connections >= self._maxconnections):
raise TooManyConnections("%d connections are active greater than max: %d" % (self._connections, self._maxconnections))
raise TooManyConnections("%d connections are already equal to the max: %d" % (self._connections, self._maxconnections))
# connection limit not reached, get a dedicated connection
try: # first try to get it from the idle cache
con = self._idle_cache.pop(0)
Expand Down

0 comments on commit 4123110

Please sign in to comment.