From a250fcb9ee1720d8e2009273a3f7e5f93a30d87f Mon Sep 17 00:00:00 2001 From: Gaurika Mahajan Date: Fri, 5 Jul 2024 18:01:38 -0400 Subject: [PATCH] trying to print out error message --- server/src/middlewares/errorResponseMiddleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/middlewares/errorResponseMiddleware.js b/server/src/middlewares/errorResponseMiddleware.js index c40d9cd4..e850948d 100644 --- a/server/src/middlewares/errorResponseMiddleware.js +++ b/server/src/middlewares/errorResponseMiddleware.js @@ -90,7 +90,7 @@ function errorResponseMiddleware(err, req, res, next) { errorMessage = 'Frosh not found. They might not be registered.'; } else { statusCode = 500; - errorMessage = 'whoops we have no idea what happened!?'; + errorMessage = err.errors; } //... for more error messages ...