Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

[fix] view/model throw object instead of Error #141

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

In case if view/model is throwing not Error object or it's ancestors stack trace is eaten and error message is mall formed. It don't contain line information and stack trace.

Error page in Express is completely empty, except word Express, object and 500 -- error code. No stack trace and code sample.
Error in express server
and here is same page with my fix:
Fixed page

[fix] view/model throw object instead of Error
In case if view/model is throwing not Error object or it's ancestors
stack trace is eaten and error message is mall formed. It don't contain
line information and stack trace.

Error page in Express is completely empty, except word Express and 500
-- error code (if thrown object don't have message property, which is
the case if String was thrown)

Can someone answer, why his was not merged?

Collaborator

mde commented Jul 18, 2015

This version of EJS (v1) is no longer maintained. EJS v2 is here: https://github.com/mde/ejs

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