add message for dataType diff

This commit is contained in:
Ben Irvin 2023-01-27 14:06:33 +01:00
parent 94898aba59
commit 168ee1e2dd

View File

@ -375,6 +375,10 @@ class TransferEngine<
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}"`, {
check: `schema on ${uid}`,
});