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

fix: hide real error when user code throw error #1128

Merged
merged 4 commits into from
Jul 1, 2021

Conversation

czy88840616
Copy link
Member

@czy88840616 czy88840616 commented Jul 1, 2021

  • 1、在线上抛出带堆栈的错误时,隐藏用户的真实错误信息
  • 2、在非 http 触发器场景增加 ctx.originEvent

@gitpod-io
Copy link

gitpod-io bot commented Jul 1, 2021

@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2021

Codecov Report

Merging #1128 (6655963) into 2.x (950ea4f) will increase coverage by 0.05%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##              2.x    #1128      +/-   ##
==========================================
+ Coverage   85.48%   85.53%   +0.05%     
==========================================
  Files         222      222              
  Lines        8857     8867      +10     
  Branches     1756     1759       +3     
==========================================
+ Hits         7571     7584      +13     
+ Misses       1224     1221       -3     
  Partials       62       62              
Impacted Files Coverage Δ
...es-serverless/serverless-fc-starter/src/runtime.ts 87.40% <85.71%> (+1.36%) ⬆️
...s-serverless/serverless-scf-starter/src/runtime.ts 96.20% <85.71%> (+2.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 950ea4f...6655963. Read the comment docs.

@czy88840616 czy88840616 merged commit e728b0b into 2.x Jul 1, 2021
@czy88840616 czy88840616 deleted the fix_serverless_return branch July 1, 2021 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants