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

Improve error message when a folder is not an SCM repo #8956

Merged
merged 1 commit into from May 24, 2021
Merged

Improve error message when a folder is not an SCM repo #8956

merged 1 commit into from May 24, 2021

Conversation

DavidSpickett
Copy link
Contributor

@DavidSpickett DavidSpickett commented May 14, 2021

Changelog: Fix: Improve error message when a directory doesn't contain a valid repository.
Docs: omit

Before you would get this:
ConanException: Not a valid 'svn' repository

Which doesn't help much, especially if you're using
"conan create" which may be off in a folder you didn't
create.

Add the path of the folder to the error message to instead
get:
ConanException: '/a/b/not_an_svn_repo' is not a valid 'svn' repository

@CLAassistant
Copy link

CLAassistant commented May 14, 2021

CLA assistant check
All committers have signed the CLA.

Before you would get this:
ConanException: Not a valid 'svn' repository

Which doesn't help much, especially if you're using
"conan create" which may be off in a folder you didn't
create.

Add the path of the folder to the error message to instead
get:
ConanException: '/a/b/not_an_svn_repo' is not a valid 'svn' repository
@lasote lasote added this to the 1.37 milestone May 24, 2021
@memsharded
Copy link
Member

Thanks for contributing this! Merging this to be included in next 1.37

@memsharded memsharded merged commit 36ef440 into conan-io:develop May 24, 2021
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

4 participants