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

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

6
views/error.html Normal file
View file

@ -0,0 +1,6 @@
<Title:>
{{status}}
<Body:>
<h1>{{status}}</h1>
<p>{{message}}</p>