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

Add 500 errors and page for when jade throws errors #57

Closed
albertcui opened this issue Oct 7, 2014 · 2 comments
Closed

Add 500 errors and page for when jade throws errors #57

albertcui opened this issue Oct 7, 2014 · 2 comments
Assignees

Comments

@albertcui
Copy link
Member

Add a callback to res.render: http://expressjs.com/api.html#res.render

Add an env variable that if defined, means it's production and we should hide errors.

@albertcui albertcui changed the title Add 500 errors for when jade throws errors Add 500 errors and page for when jade throws errors Oct 7, 2014
@howardchung
Copy link
Member

set NODE_ENV=production on your production server.

Should solve this issue.

@howardchung
Copy link
Member

Is this done in production?

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