Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Show generic error and exit on network error. Fixes #55 #56

Merged
merged 1 commit into from Feb 3, 2015

Conversation

peterblazejewicz
Copy link
Member

This PR introduces basic error handling for Yeoman remote fetch future used in application which fails silently on network error.

Instead of seeing this:

 info ... Fetching https://github.com/OmniSharp/generator-aspnet/archive/release.tar.gz ...
     info This might take a few moments
/Users/piotrblazejewicz/.cache/yeoman


Your project is now created, you can use the following commands to get going
    kpm restore
    kpm build
    k run for console projects
    k kestrel or k webfor web projects

the process will now spill error and exit process:
20150202222604

This is standard solution used in Yeoman projects using remote repository fetching, e.g.:
https://github.com/yeoman/generator-mobile/blob/29c5dbcb947f219c82eca200514788218bf26603/app/index.js#L84-L87

Thanks!

@sayedihashimi
Copy link
Member

+1 :shipit:

spboyer added a commit that referenced this pull request Feb 3, 2015
Show generic error and exit on network error. Fixes #55
@spboyer spboyer merged commit 6005467 into OmniSharp:master Feb 3, 2015
@spboyer
Copy link
Contributor

spboyer commented Feb 3, 2015

Thanks for the PR!

@peterblazejewicz peterblazejewicz deleted the fix/download-error branch February 3, 2015 17:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants