aboutsummaryrefslogtreecommitdiff
path: root/lolisafe.js
diff options
context:
space:
mode:
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