Skip to content

Commit b641712

Browse files
AndrewLaneTylerBrock
authored andcommitted
Improve error message for Parse.Error.INCORRECT_TYPE failure condition (#2185)
1 parent d1cdea0 commit b641712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/SchemaController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ class SchemaController {
518518
if (!dbTypeMatchesObjectType(expectedType, type)) {
519519
throw new Parse.Error(
520520
Parse.Error.INCORRECT_TYPE,
521-
`schema mismatch for ${className}.${fieldName}; expected ${expectedType.type || expectedType} but got ${type}`
521+
`schema mismatch for ${className}.${fieldName}; expected ${expectedType.type || expectedType} but got ${type.type}`
522522
);
523523
}
524524
}

0 commit comments

Comments
 (0)