後來看到一個蠻Hacking 的方式,express-async-errors,他會複寫Express/Layer.handle 方法,把每個Routing Function 的錯誤統一用 next(error) 傳遞.
確定! 回上一頁