aboutsummaryrefslogtreecommitdiff
path: root/lolisafe.js
diff options
context:
space:
mode:
authorkanadeko <[email protected]>2017-01-17 15:56:44 -0300
committerkanadeko <[email protected]>2017-01-17 15:56:44 -0300
commit79e786f3b8f261a8c390a661f7e4d90d9b43b713 (patch)
treea0ec27f5d9b1d8cbdfec49b19fe70f0a1f3fad06 /lolisafe.js
parentRemoved extra routes, moved static to main file (diff)
downloadhost.fuwn.me-79e786f3b8f261a8c390a661f7e4d90d9b43b713.tar.xz
host.fuwn.me-79e786f3b8f261a8c390a661f7e4d90d9b43b713.zip
Added 500 error page
Diffstat (limited to 'lolisafe.js')
-rw-r--r--lolisafe.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lolisafe.js b/lolisafe.js
index fffe9a7..91f6de5 100644
--- a/lolisafe.js
+++ b/lolisafe.js
@@ -39,7 +39,9 @@ safe.use(function (req, res, next) {
})
safe.use(function (err, req, res, next) {
- res.status(500).end()
+ res.status(500).sendFile('500.html', {
+ root: './pages/error/',
+ })
})
safe.listen(config.port, () => console.log(`loli-safe started on port ${config.port}`)) \ No newline at end of file