Express: How can I forward errors with next

后端 未结 0 409
轻奢々
轻奢々 2021-01-14 15:49

I wanted to create an error handler as middleware. My Idea was when I don\'t get any matching routes, I will generate a "route not found error" and use the next()

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