mirror of
https://github.com/strapi/strapi.git
synced 2025-11-17 02:28:30 +00:00
change connect array error string to be more clear
This commit is contained in:
parent
b0e37e832b
commit
2c854a0cc5
@ -169,11 +169,10 @@ const relationsOrderer = (initArr, idColumn, orderColumn) => {
|
|||||||
try {
|
try {
|
||||||
insertRelation(relation);
|
insertRelation(relation);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
strapi.log.error(err);
|
|
||||||
throw new Error(
|
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
|
relation.position
|
||||||
)} is invalid`
|
)}. The list of connect relations is not valid`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user