H
H
HoHsi2015-10-12 12:52:35
HTML
HoHsi, 2015-10-12 12:52:35

How to disable HTML debugging in Jade?

Good day!
How to disable compilation errors in HTML. Suppose, if there is an error in the Jade template, then it writes the entire log to the response and fires part of the picture. How to send a 500 instead or just deny the process?
Error start example

TypeError: Cannot read property 'index' of undefined
 at

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HoHsi, 2015-10-12
@HoHsi

It just hangs error handling via

app.use (err, req, res, next)->
    res.sendStatus 500

In this case jade rendering error is not displayed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question