DuplicateException dbg

This commit is contained in:
fogelito
2024-07-11 12:38:55 +03:00
parent b4ab1c2c69
commit 865bfdbd34
+1
View File
@@ -2907,6 +2907,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
} catch (StructureException $exception) {
throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $exception->getMessage());
} catch (DuplicateException $exception) {
var_dump($exception);
throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS);
}