change connect array error string to be more clear

This commit is contained in:
Marc-Roig 2022-12-05 10:55:19 +01:00
parent b0e37e832b
commit 2c854a0cc5

View File

@ -169,11 +169,10 @@ const relationsOrderer = (initArr, idColumn, orderColumn) => {
try {
insertRelation(relation);
} catch (err) {
strapi.log.error(err);
throw new Error(
`Could not connect ${relation.id}, position ${JSON.stringify(
`There was a problem connecting id ${relation.id} with position ${JSON.stringify(
relation.position
)} is invalid`
)}. The list of connect relations is not valid`
);
}
});