-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix confusing error message for env create with missing file #11883
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 confusing error message for env create with missing file #11883
Conversation
|
We require contributors to sign our Contributor License Agreement and we don't have one on file for @AdrianFreundQC. In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
I already signed the CLA a few minutes before creating this PR. |
|
Hi @AdrianFreundQC, So far I am a fan of the changes you recommended. I also went ahead and added my own commit to address some other concerns I had. For one, I found the code complexity to be a bit high in this particular function, so I chose to split it in to two functions. Additionally, I have added doc strings and type hints to make this code a little easier to read for future maintainers. Thank you very much for the initial changes you submitted. I will now ask for a review from another core team member. |
Description
Fixes #11839: conda env create gives confusing message if environment file does not exist and name is given
Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?Is this significant enough to warrant a news entry? This shouldn't change any behavior, but just select a clearer error message.