catch Dependency

This commit is contained in:
fogelito 2025-01-15 13:10:03 +02:00
parent a1566b8974
commit 43db5b4552

View file

@ -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());