[英]Express App.error doesn't work with Node.js 0.8.0 What should I do
I have just installed Node 0.8.0 and also updated express. 我刚刚安装了Node 0.8.0,还更新了express。 However, app.error doesn't work anymore.
但是,app.error不再起作用。 Is there a way to fix or go around this issue?
有没有解决或解决此问题的方法? thanks.
谢谢。
From: https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x 来自: https : //github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x
Removed: - app.error() (use middleware with (err, req, res, next)) 删除: -app.error()(与(err,req,res,next)一起使用中间件)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.