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: re-throw original exception and preserve message in compute client #668

Merged
merged 2 commits into from Apr 12, 2019

Conversation

JustinBeckwith
Copy link
Contributor

Fixes #532. The original error message returned from the GCE metadata service was getting swallowed. This ensures the underlying exception is thrown, and the message is preserved.

@codecov
Copy link

codecov bot commented Apr 12, 2019

Codecov Report

Merging #668 into master will increase coverage by 0.18%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #668      +/-   ##
==========================================
+ Coverage   88.14%   88.32%   +0.18%     
==========================================
  Files          18       18              
  Lines         776      771       -5     
  Branches       84       83       -1     
==========================================
- Hits          684      681       -3     
+ Misses         81       79       -2     
  Partials       11       11
Impacted Files Coverage Δ
src/auth/computeclient.ts 100% <100%> (+6.06%) ⬆️

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 b11841e...7b59e44. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 12, 2019

Codecov Report

Merging #668 into master will increase coverage by 0.15%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #668      +/-   ##
==========================================
+ Coverage   88.14%   88.29%   +0.15%     
==========================================
  Files          18       18              
  Lines         776      769       -7     
  Branches       84       83       -1     
==========================================
- Hits          684      679       -5     
+ Misses         81       79       -2     
  Partials       11       11
Impacted Files Coverage Δ
src/auth/computeclient.ts 100% <100%> (+6.06%) ⬆️

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 b11841e...cdbc2b8. Read the comment docs.

Copy link
Member

@alexander-fenster alexander-fenster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubber stamping :)

@JustinBeckwith JustinBeckwith merged commit dffd1cc into master Apr 12, 2019
@JustinBeckwith JustinBeckwith deleted the norethrow branch April 13, 2019 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
3 participants