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

feat: more friendly warning when fetch npm info got error #23

Merged
merged 1 commit into from Mar 1, 2017

Conversation

atian25
Copy link
Member

@atian25 atian25 commented Feb 26, 2017

@mention-bot
Copy link

@atian25, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jtyjty99999 to be a potential reviewer.

@codecov
Copy link

codecov bot commented Feb 26, 2017

Codecov Report

Merging #23 into master will decrease coverage by -0.25%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
- Coverage   81.56%   81.31%   -0.25%     
==========================================
  Files           1        1              
  Lines         179      182       +3     
==========================================
+ Hits          146      148       +2     
- Misses         33       34       +1
Impacted Files Coverage Δ
lib/init_command.js 81.31% <50%> (-0.25%)

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 5e6437d...5713120. Read the comment docs.

@atian25
Copy link
Member Author

atian25 commented Mar 1, 2017

ping, 这个再看看。

覆盖率那个,回头在骨架那块一起搞

try {
const result = yield urllib.request(`${this.registryUrl}/${pkgName}/latest`, {
dataType: 'json',
followRedirect: true,
});
if (result.status !== 200) {
Copy link
Member

Choose a reason for hiding this comment

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

用 assert 吧,就不影响覆盖率了

Copy link
Member Author

Choose a reason for hiding this comment

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

改了

@popomore popomore merged commit 20f98f5 into master Mar 1, 2017
@popomore popomore deleted the npm-info-404 branch March 1, 2017 05:05
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.

None yet

3 participants