Skip to content
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

Throw an error if model not found #39

Closed
andrewbranch opened this issue Jul 1, 2015 · 1 comment
Closed

Throw an error if model not found #39

andrewbranch opened this issue Jul 1, 2015 · 1 comment

Comments

@andrewbranch
Copy link
Contributor

Just a nicety: at the moment, when the adapter's find method gets called, if the type that it tries to find was never provided to the adapter, rather than erroring, it just hangs indefinitely. (I stupidly forgot to add a new model to my new API.dbAdapters.MongooseAdapter({...}) call, and it took me forever to figure out what was going wrong.)

@ethanresnick
Copy link
Owner

Good catch and, of course, PR welcome! Otherwise, I'll knock this out when I have a spare minute.

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

No branches or pull requests

2 participants