Node JS async middleware not catching exception

后端 未结 0 386
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 17:28

I have a middleware async function in NodeJS as such.

module.exports = function (handler) {
return async (req, res, next) => {
try {
  console.log(\'async          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题