1
0
Fork 0
mirror of synced 2024-07-01 20:50:49 +12:00

Catch limit exception on attributes

This commit is contained in:
kodumbeats 2021-08-04 17:04:48 -04:00
parent ec858cd7b4
commit 94e330149f

View file

@ -89,6 +89,8 @@ $attributesCallback = function ($collectionId, $attribute, $response, $dbForInte
]));
} catch (DuplicateException $th) {
throw new Exception('Attribute already exists', 409);
} catch (LimitException $e) {
throw new Exception($e->getMessage(), 400);
}
$dbForInternal->purgeDocument('collections', $collectionId);