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

ch15: api domain error handling #79

Open
teemuniiranen opened this issue Jun 29, 2016 · 0 comments
Open

ch15: api domain error handling #79

teemuniiranen opened this issue Jun 29, 2016 · 0 comments

Comments

@teemuniiranen
Copy link

I tried to throw new error inside my rest route to test api domain with:

throw new Error("Yikes");

Middleware defined in the start of the meadowlark.js kicks in and prints "DOMAIN ERROR CAUGHT" to log. Why is not apiOptions.domain handling the error? Is this because the other one is defined first or am I understanding something wrong?

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

1 participant