Change Exception message

This commit is contained in:
fogelito
2023-11-16 11:33:51 +02:00
parent 455c6a178e
commit b18c422b3a
+1 -2
View File
@@ -1650,8 +1650,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/relati
\strtolower($attribute->getAttribute('options')['twoWayKey']) === \strtolower($twoWayKey) &&
$attribute->getAttribute('options')['relatedCollection'] === $relatedCollection->getId()
) {
// Currently, we always throw an Exception even when, We do not want to change $twoWayKsy on $twoWayKeyNull
throw new Exception(Exception::ATTRIBUTE_ALREADY_EXISTS);
throw new Exception(Exception::ATTRIBUTE_ALREADY_EXISTS, 'Creating more than one "manyToMany" relationship on the same collection is currently not permitted.');
}
if (