diff options
| author | kanadeko <[email protected]> | 2017-01-17 15:56:44 -0300 |
|---|---|---|
| committer | kanadeko <[email protected]> | 2017-01-17 15:56:44 -0300 |
| commit | 79e786f3b8f261a8c390a661f7e4d90d9b43b713 (patch) | |
| tree | a0ec27f5d9b1d8cbdfec49b19fe70f0a1f3fad06 /lolisafe.js | |
| parent | Removed extra routes, moved static to main file (diff) | |
| download | host.fuwn.me-79e786f3b8f261a8c390a661f7e4d90d9b43b713.tar.xz host.fuwn.me-79e786f3b8f261a8c390a661f7e4d90d9b43b713.zip | |
Added 500 error page
Diffstat (limited to 'lolisafe.js')
| -rw-r--r-- | lolisafe.js | 4 |
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 |