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: unknown exception with deploy/retrieve #3178

Merged
merged 2 commits into from
Apr 26, 2021
Merged

Conversation

brpowell
Copy link
Contributor

What does this PR do?

Surfaces the original error instead of "Unknown Exception". While this doesn't exactly fix underlying issues if there are some, we or the user at least can triage what's going on.

What issues does this PR fix or reference?

#3137, @W-9178716@

Functionality Before

"Unknown Exception" message reported for any issues that are not TypeInferenceErrors

Functionality After

Original errors are now surfaced to make triaging easier.

@brpowell brpowell requested a review from a team as a code owner April 26, 2021 17:11
Comment on lines +16 to +17
e.message = e.message.replace(getRootWorkspacePath(), '');
return e;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Much easier and less destructive

@codecov
Copy link

codecov bot commented Apr 26, 2021

Codecov Report

Merging #3178 (c3286bd) into develop (1c3439f) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3178      +/-   ##
===========================================
- Coverage    76.01%   76.00%   -0.02%     
===========================================
  Files          276      276              
  Lines        10403    10398       -5     
  Branches      1219     1218       -1     
===========================================
- Hits          7908     7903       -5     
  Misses        2155     2155              
  Partials       340      340              
Impacted Files Coverage Δ
...cedx-vscode-core/src/commands/baseDeployCommand.ts 51.16% <ø> (ø)
...edx-vscode-core/src/commands/baseDeployRetrieve.ts 90.51% <100.00%> (ø)
...scode-core/src/commands/util/betaDeployRetrieve.ts 100.00% <100.00%> (ø)

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 1c3439f...c3286bd. Read the comment docs.

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

Successfully merging this pull request may close these issues.

3 participants