mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-07 10:44:14 -05:00
Merge pull request #445 from PretendoNetwork/feat/fix-crash
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
Fix application crashes
This commit is contained in:
commit
fbe96b026c
1149
package-lock.json
generated
1149
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
|
@ -33,7 +33,7 @@
|
|||
"cookie-parser": "^1.4.5",
|
||||
"discord-api-types": "^0.38.52",
|
||||
"discord-oauth2": "github:ryanblenis/discord-oauth2",
|
||||
"express": "^4.17.1",
|
||||
"express": "^5.2.1",
|
||||
"express-handlebars": "^5.3.1",
|
||||
"express-locale": "^2.0.0",
|
||||
"fs-extra": "^9.1.0",
|
||||
|
|
|
|||
|
|
@ -127,6 +127,11 @@ app.use((request, response) => {
|
|||
response.render('404');
|
||||
});
|
||||
|
||||
app.use((error, request, response, _next) => {
|
||||
console.error(error);
|
||||
response.send('<h1>An error occured, try again later</h1>');
|
||||
});
|
||||
|
||||
logger.info('Setting up handlebars engine');
|
||||
app.engine('handlebars', handlebars({
|
||||
helpers: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user