mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Update src/Client.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
fba2c96b6e
commit
3fd9db4ec2
1 file changed
+3
-4
+3
-4
@@ -118,10 +118,9 @@ class Client
|
||||
if ($this->client->isConnected()) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
if(!$this->client->connect($this->host, $this->port)){
|
||||
throw new \Exception("Failed to connect to MongoDB");
|
||||
}
|
||||
if (!$this->client->connect($this->host, $this->port)) {
|
||||
throw new Exception("Failed to connect to MongoDB at {$this->host}:{$this->port}");
|
||||
}
|
||||
|
||||
[$payload, $db] = $this->auth->start();
|
||||
|
||||
|
||||
Reference in new issue
Block a user