mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
more improvements on axios and spotify api error handling, logging, other corrections
This commit is contained in:
@@ -21,10 +21,12 @@ const validate = (req, res, next) => {
|
||||
[err.path]: err.msg
|
||||
}));
|
||||
|
||||
return res.status(400).json({
|
||||
res.status(400).json({
|
||||
message: getNestedValuesString(extractedErrors),
|
||||
errors: extractedErrors
|
||||
});
|
||||
logger.warn("invalid request", { extractedErrors });
|
||||
return;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user