diff --git a/src/Client.php b/src/Client.php index 63f51ac..7fd6049 100644 --- a/src/Client.php +++ b/src/Client.php @@ -532,7 +532,7 @@ public function createCollection(string $name, array $options = []): bool $list = $this->listCollectionNames(["name" => $name], $options); if (\count($list->cursor->firstBatch) > 0) { - throw new Exception('Collection Exists'); + throw new Exception('Collection Exists', 48); } $res = $this->query(array_merge([