mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-24 06:35:37 +00:00
send error page to user
This commit is contained in:
parent
4438846beb
commit
22265e9fac
2 changed files with 7 additions and 2 deletions
|
|
@ -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
6
views/error.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<Title:>
|
||||
{{status}}
|
||||
|
||||
<Body:>
|
||||
<h1>{{status}}</h1>
|
||||
<p>{{message}}</p>
|
||||
Loading…
Reference in a new issue