send error page to user

This commit is contained in:
Tyler Renelle
2013-08-21 00:44:28 -04:00
parent 4438846beb
commit 22265e9fac
2 changed files with 7 additions and 2 deletions
+1 -2
View File
@@ -17,5 +17,4 @@ module.exports = (root) ->
else if status >= 400 and status < 600
res.send status
else
#TODO send error to email
res.redirect('/500.html')
staticPages.render 'error', res, {message, status}, status