Skip to content

Add more insightful error messages for useFind and useGet - #539

Merged
marshallswain merged 4 commits into
feathersjs-ecosystem:masterfrom
JorgenVatle:add-useful-errors
Oct 23, 2020
Merged

marshallswain merged 4 commits into
feathersjs-ecosystem:masterfrom
JorgenVatle:add-useful-errors

Conversation

@JorgenVatle

@JorgenVatle JorgenVatle commented Oct 13, 2020 •

Copy link
Copy Markdown
Contributor

Had some trouble where I was passing in undefined models into useGet(), the error message produced had me scratching my head for a few moments.

image

This PR add a handler for both useGet() and useFind() that'll produce a slightly more useful error message when no model is passed:

image

This should hopefully save someone out there from a moment of confusion! 😅


Somewhat unrelated to this PR; as it is the month of Hacktoberfest you should consider adding the hacktoberfest topic to this repository so that contributors can find and get a +1 for their contributions to FeathersVuex. 🙌

@marshallswain

Copy link
Copy Markdown
Member

Ah thanks for this. Good catch!

@marshallswain
marshallswain merged commit 11b1318 into feathersjs-ecosystem:master Oct 23, 2020
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