diff --git a/src/Database/Database.php b/src/Database/Database.php index 7764554b4..50987c197 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -1222,6 +1222,7 @@ public function createCollection(string $id, array $attributes = [], array $inde try { $createdCollection = $this->silent(fn () => $this->createDocument(self::METADATA, $collection)); } catch (Exception $e) { + \var_dump('Error creating collection ' . $id . ' metadata document. Deleting collection.' . "\n" . $e->getMessage() . "\n" . $e->getTraceAsString()); $this->adapter->deleteCollection($id); throw $e; }