From 654bdf081fbf0875ced1434bb12ada293d661108 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 1 Nov 2024 10:13:07 +0000 Subject: [PATCH] Fix error reporting on auth path --- routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/auth.js b/routes/auth.js index 18f7c33..cd2c693 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -69,7 +69,7 @@ function loginCallback (req, res) { res.end() } catch (err) { if (err) { - res.writeHead(err.code) + res.writeHead(400) res.end(err + '') } }