mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
catch Dependency
This commit is contained in:
parent
a1566b8974
commit
43db5b4552
1 changed files with 11 additions and 0 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue