How to display a express-validator generated error message in a nice format

前端 未结 0 1745
夕颜
夕颜 2020-12-17 22:08

Express-Validator error handing is a bit raw and produces not too aesthetical results

    return res.status(422).json({ error: error.array() });
相关标签:
回答
  • 消灭零回复
提交回复
热议问题