Skip to content

Commit

Permalink
trying to print out error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurikam2003 committed Jul 5, 2024
1 parent 9da04ab commit a250fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/middlewares/errorResponseMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...

Expand Down

0 comments on commit a250fcb

Please sign in to comment.