Skip to content
New issue

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

app.on('error', (err, ctx) => {}) #3427

Closed
184609680 opened this issue Jan 25, 2019 · 2 comments
Closed

app.on('error', (err, ctx) => {}) #3427

184609680 opened this issue Jan 25, 2019 · 2 comments

Comments

@184609680
Copy link

184609680 commented Jan 25, 2019

看了onerror源码
有使用这么一段函数
app.on('error', (err, ctx) => { \\... }
我也想使用这个函数
并且覆盖他,有什么办法

@egg-bot
Copy link

egg-bot commented Jan 25, 2019

Hello @184609680. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@184609680,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

@popomore
Copy link
Member

可以加一个中间件拦截

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants