We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var handle = function (req, res, stack) { var next = function (err) { if (err) { return handle500(err, req, res, stack); } // 从stack数组中取出中间件并执行 var middleware = stack.shift(); if (middleware) { // 传入next()函数自身,使中间件能够执行结束后递归 try { middleware(req, res, next); } catch (ex) { **// 这里的ex 与 next参数中的err不匹配** next(err); } } }; // 启动执行 next(); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
var handle = function (req, res, stack) { var next = function (err) { if (err) { return handle500(err, req, res, stack); } // 从stack数组中取出中间件并执行 var middleware = stack.shift(); if (middleware) { // 传入next()函数自身,使中间件能够执行结束后递归 try { middleware(req, res, next); } catch (ex) { **// 这里的ex 与 next参数中的err不匹配** next(err); } } }; // 启动执行 next(); };
The text was updated successfully, but these errors were encountered: