Merge pull request #445 from PretendoNetwork/feat/fix-crash
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run

Fix application crashes
This commit is contained in:
William Oldham 2026-08-05 21:06:28 +01:00 committed by GitHub
commit fbe96b026c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 744 additions and 412 deletions

1149
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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: {