Skip to content

Commit

Permalink
Merge pull request #11 from utopia-php/feat-improve-error
Browse files Browse the repository at this point in the history
Improve: exception message
  • Loading branch information
christyjacob4 authored Nov 22, 2022
2 parents c8f96a3 + 56e3fab commit d2870ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pools/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function pop(): Connection

if (is_null($connection)) {
if ($attempts >= $this->getRetryAttempts()) {
throw new Exception('Pool is empty');
throw new Exception("Pool '{$this->name}' is empty (size {$this->size})");
}

sleep($this->getRetrySleep());
Expand Down

0 comments on commit d2870ab

Please sign in to comment.