8000 Friendly error messages for VCS failures by michaeljoseph · Pull Request #778 · cookiecutter/cookiecutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Friendly error messages for VCS failures #778

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

Merged
merged 20 commits into from
Jul 19, 2016

Conversation

michaeljoseph
Copy link
Contributor

Fixes #776

@@ -113,3 +113,26 @@ class RepositoryNotFound(CookiecutterException):
"""
Raised when the specified cookiecutter repository doesn't exist.
"""


class RepositoryCloneFailed(CookiecutterException):
Copy link
Member

Choose a reason for hiding this comment

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

👍

@codecov-io
Copy link
codecov-io commented Jul 13, 2016

Current coverage is 100%

Merging #778 into master will not change coverage

@@           master   #778   diff @@
====================================
  Files          14     14          
  Lines         591    600     +9   
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
+ Hits          591    600     +9   
  Misses          0      0          
  Partials        0      0          

Sunburst

Powered by Codecov. Last updated by a65ea9b...5351a7a

BRANCH_ERRORS = [
'error: pathspec',
'unknown revision',
]
Copy link
Member

Choose a reason for hiding this comment

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

Is this working for both git and mercurial?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@michaeljoseph
Copy link
Contributor Author

🔔 @hackebrot

@@ -115,9 +123,29 @@ def clone(repo_url, checkout=None, clone_to_dir=".", no_input=False):
prompt_and_delete_repo(repo_dir, no_input=no_input)

if repo_type in ['git', 'hg']:
Copy link
Member

Choose a reason for hiding this comment

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

I think this is not required as we run identify_repo before that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, will fix.

@hackebrot
Copy link
Member

Great work @michaeljoseph! 👏

@pydanny
Copy link
Member
pydanny commented Jul 16, 2016

🎉

@hackebrot hackebrot merged commit 6e58212 into cookiecutter:master Jul 19, 2016
hackebrot added a commit that referenced this pull request Jul 19, 2016
@michaeljoseph michaeljoseph deleted the vcs-error-messages branch July 19, 2016 13:04
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.

4 participants
0