mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 00:03:40 +00:00
add message for dataType diff
This commit is contained in:
parent
94898aba59
commit
168ee1e2dd
@ -375,6 +375,10 @@ class TransferEngine<
|
|||||||
return `Schema value changed at "${path}": "${diff.values[0]}" (${diff.types[0]}) => "${diff.values[1]}" (${diff.types[1]})`;
|
return `Schema value changed at "${path}": "${diff.values[0]}" (${diff.types[0]}) => "${diff.values[1]}" (${diff.types[1]})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (diff.kind === 'dataType') {
|
||||||
|
return `Schema has differing data types at "${path}": "${diff.values[0]}" (${diff.types[0]}) => "${diff.values[1]}" (${diff.types[1]})`;
|
||||||
|
}
|
||||||
|
|
||||||
throw new TransferEngineValidationError(`Invalid diff found for "${uid}"`, {
|
throw new TransferEngineValidationError(`Invalid diff found for "${uid}"`, {
|
||||||
check: `schema on ${uid}`,
|
check: `schema on ${uid}`,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user