Skip to content

Commit

Permalink
Update schema mismatch error to include type string (#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyPlease authored and drew-gross committed May 24, 2016
1 parent 3a96140 commit 4864518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/SchemaController.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class SchemaController {
} else {
throw new Parse.Error(
Parse.Error.INCORRECT_TYPE,
`schema mismatch for ${className}.${fieldName}; expected ${expected} but got ${type}`
`schema mismatch for ${className}.${fieldName}; expected ${expected.type || expected} but got ${type}`
);
}
}
Expand Down

0 comments on commit 4864518

Please sign in to comment.