Skip to content

Commit 94c45fa

Browse files
committed
Update validation error message for clarity
1 parent 077c598 commit 94c45fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware-exercise/off-the-shelf-middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const validateArray = (req, res, next) => {
2626
) {
2727
next();
2828
} else {
29-
res.status(400).send("Error message");
29+
res.status(400).send("Invalid request body. Expected a JSON array containing only strings.");
3030
}
3131
};
3232

0 commit comments

Comments
 (0)