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

(req, res) => {}函数内如有语法错误,会导致进程死掉 #102

Open
PN-linshifeng opened this issue May 14, 2020 · 2 comments
Open

Comments

@PN-linshifeng
Copy link

感觉有两个地方要处理,
1:如果函数内语法错误或者异常不要导致进程死掉。
2:内部有错误希望能返回 status 500。

@jaywcjlove
Copy link
Owner

image

  1. 我测试了 1 并没有死掉,可以上传你的工程我看看。
  2. 目前还没有想到方法 返回 status 500,如果你有办法告诉我,或者提交 PR

@jaywcjlove
Copy link
Owner

@PN-linshifeng PN

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

No branches or pull requests

2 participants