Skip to content

Improve error message for Parse.Error.INCORRECT_TYPE failure condition #2185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2016
Merged

Conversation

AndrewLane
Copy link
Contributor

Currently, the error message looks like the following, which needs improvement.

schema mismatch for _User.nebulousDataType; expected Number but got [object Object]

@TylerBrock
Copy link
Contributor

Would you mind writing a test to make sure we don't have a regression? Are we sure type is always an object?

@AndrewLane
Copy link
Contributor Author

I'm ignorant as to how to write a test (sorry). However, I believe we can be 100% confident that type is an object based on how it's used in the dbTypeMatchesObjectType method.

@TylerBrock
Copy link
Contributor

Ok, seems good to me then. Thanks for the contribution.

@TylerBrock TylerBrock merged commit b641712 into parse-community:master Jul 2, 2016
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Mar 15, 2017
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants