From dc4a05101c62014c4ae5bf36358d77053f923530 Mon Sep 17 00:00:00 2001 From: Daniel Cosby Date: Tue, 24 Sep 2024 13:54:34 +0100 Subject: [PATCH] return generic '500' status on bootError page --- lib/server/booterror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/booterror.js b/lib/server/booterror.js index 92de6cbc81b..6c4d7f1469d 100644 --- a/lib/server/booterror.js +++ b/lib/server/booterror.js @@ -29,7 +29,7 @@ function bootError(env, ctx) { return '
' + obj.desc + '
' + message.replace(/\\n/g, '
') + '
'; }).join(' '); - res.render('error.html', { + res.status(500).render('error.html', { errors, locals });