Skip to content

Commit 83dbcde

Browse files
authored
Merge pull request #33 from utopia-php/fix-collection-exists-code
2 parents 45bedf3 + bf85c7f commit 83dbcde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public function createCollection(string $name, array $options = []): bool
532532
$list = $this->listCollectionNames(["name" => $name], $options);
533533

534534
if (\count($list->cursor->firstBatch) > 0) {
535-
throw new Exception('Collection Exists');
535+
throw new Exception('Collection Exists', 48);
536536
}
537537

538538
$res = $this->query(array_merge([

0 commit comments

Comments
 (0)