diff --git a/src/Controllers/SchemaController.js b/src/Controllers/SchemaController.js index 2700df80..dffbf6ed 100644 --- a/src/Controllers/SchemaController.js +++ b/src/Controllers/SchemaController.js @@ -518,7 +518,7 @@ class SchemaController { if (!dbTypeMatchesObjectType(expectedType, type)) { throw new Parse.Error( Parse.Error.INCORRECT_TYPE, - `schema mismatch for ${className}.${fieldName}; expected ${expectedType.type || expectedType} but got ${type}` + `schema mismatch for ${className}.${fieldName}; expected ${expectedType.type || expectedType} but got ${type.type}` ); } }