Catch limit exception on attributes
This commit is contained in:
parent
ec858cd7b4
commit
94e330149f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue