Skip to content

Commit 4864518

Browse files
JeremyPleasedrew-gross
authored andcommitted
Update schema mismatch error to include type string (#1898)
1 parent 3a96140 commit 4864518

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
@@ -492,7 +492,7 @@ class SchemaController {
492492
} else {
493493
throw new Parse.Error(
494494
Parse.Error.INCORRECT_TYPE,
495-
`schema mismatch for ${className}.${fieldName}; expected ${expected} but got ${type}`
495+
`schema mismatch for ${className}.${fieldName}; expected ${expected.type || expected} but got ${type}`
496496
);
497497
}
498498
}

0 commit comments

Comments
 (0)