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

Needs better error handling for NODE_ENV value #40

Open
LMS007 opened this issue May 5, 2017 · 0 comments
Open

Needs better error handling for NODE_ENV value #40

LMS007 opened this issue May 5, 2017 · 0 comments

Comments

@LMS007
Copy link

LMS007 commented May 5, 2017

My NODE_ENV was set to "dev" and thus produced a not-so-obvious error in heroku

Error: Cannot find module './src/config/dev'

^ that did not mean too much to me initially.

The stack trace was even less informative then that. I suggest a try catch with a message about what valid values the NODE_ENV can be set to... and perhaps it could default to using the development.js file with a warning if no matching file can be found.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants