diff --git a/src/Pools/Pool.php b/src/Pools/Pool.php index 66e85c2..4d47106 100644 --- a/src/Pools/Pool.php +++ b/src/Pools/Pool.php @@ -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());