Skip to content

Commit e5a5968

Browse files
committed
improved error message
1 parent 914c1ba commit e5a5968

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Neo4j/Neo4jConnectionPool.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Laudis\Neo4j\Contracts\AuthenticateInterface;
2929
use Laudis\Neo4j\Contracts\ConnectionInterface;
3030
use Laudis\Neo4j\Contracts\ConnectionPoolInterface;
31+
use Laudis\Neo4j\Contracts\DriverInterface;
3132
use Laudis\Neo4j\Databags\SessionConfiguration;
3233
use Laudis\Neo4j\Enum\AccessMode;
3334
use Laudis\Neo4j\Enum\RoutingRoles;
@@ -41,7 +42,7 @@
4142
/**
4243
* Connection pool for with auto client-side routing.
4344
*
44-
* @psalm-import-type BasicDriver from \Laudis\Neo4j\Contracts\DriverInterface
45+
* @psalm-import-type BasicDriver from DriverInterface
4546
*
4647
* @implements ConnectionPoolInterface<V3>
4748
*/
@@ -91,7 +92,7 @@ public function acquire(
9192
}
9293
}
9394

94-
throw new RuntimeException(sprintf('Cannot connect to address: "%s". Addresses tried: "%s"', $uri->getHost(), implode('", "', $triedAddresses)));
95+
throw new RuntimeException(sprintf('Cannot connect to host: "%s". Hosts tried: "%s"', $uri->getHost(), implode('", "', $triedAddresses)));
9596
}
9697

9798
$server = $this->getNextServer($table, $config->getAccessMode()) ?? $uri;

0 commit comments

Comments
 (0)