mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +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 {
|
||||
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`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user