Skip to content

Commit fda1e3e

Browse files
committed
api/nus/auth: Log errors
1 parent c97cdc3 commit fda1e3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/api/nus/auth/login.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ const handlePost: Handler = async (req, res) => {
3434

3535
// eslint-disable-next-line no-unused-vars
3636
const handleError: (error: Error) => Handler = (error) => async (_req, res) => {
37+
// eslint-disable-next-line no-console
38+
console.error(error);
3739
res.status(500).json({
3840
message:
3941
'An unexpected error occurred. Please try logging in with your NUSID, in the format nusstu\\e0123456, instead of your email. You can use Incognito mode or clear your cookies to try again.',

0 commit comments

Comments
 (0)