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
实例代码
const main = cxt =>{ cxt.throw(500); }
改为
const main = cxt =>{ cxt.response.status = 500; }
下面代码运行不到
app.on('error', (err, cxt) =>{ console.error('server error', err); });
The text was updated successfully, but these errors were encountered:
正常,请参考 Koa 文档。
Sorry, something went wrong.
No branches or pull requests
实例代码
改为
下面代码运行不到
The text was updated successfully, but these errors were encountered: