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: check missing config in Session ctor #426

Merged
merged 1 commit into from
May 30, 2020

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented May 28, 2020

Closes #423.

We were checking for missing config components after the Session was created, but the session ctor itself assumes those components will be present since it tries to use them to check the remote repo URL. This PR moves that check into the ctor itself for a better error experience:

Screen Shot 2020-05-28 at 11 03 03 AM

cc @joyeecheung @targos

@codebytere codebytere requested review from joyeecheung and targos May 28, 2020 18:02
@codecov
Copy link

codecov bot commented May 28, 2020

Codecov Report

Merging #426 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #426   +/-   ##
=======================================
  Coverage   77.13%   77.13%           
=======================================
  Files          21       21           
  Lines        1496     1496           
=======================================
  Hits         1154     1154           
  Misses        342      342           

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 75abd3a...b14d192. Read the comment docs.

@codebytere codebytere merged commit 7dc544d into nodejs:master May 30, 2020
@codebytere codebytere deleted the fix-warn-missing branch May 30, 2020 15:46
@codebytere codebytere mentioned this pull request Jun 8, 2020
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.

git node land crash if ncu-config wasn't set
2 participants