pixies
Publicerror.js
export default (err, req, res, next) => {
if (!(err instanceof SyntaxError)) return next();
res.status(400).json({message: "You need to provide a valid JSON body"});
};export default (err, req, res, next) => {
if (!(err instanceof SyntaxError)) return next();
res.status(400).json({message: "You need to provide a valid JSON body"});
};