mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
catch Dependency
This commit is contained in:
@@ -278,6 +278,17 @@ class Databases extends Action
|
||||
$dbForProject->deleteDocument('attributes', $relatedAttribute->getId());
|
||||
}
|
||||
|
||||
} catch (DatabaseException\Dependency $e) {
|
||||
Console::error($e->getMessage());
|
||||
|
||||
$dbForProject->updateDocument(
|
||||
'attributes',
|
||||
$attribute->getId(),
|
||||
$attribute->setAttribute('error', $e->getMessage())
|
||||
);
|
||||
|
||||
return;
|
||||
|
||||
} catch (NotFound $e) {
|
||||
Console::error($e->getMessage());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user