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 update fails due to channel conflict #735

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

maresb
Copy link
Contributor

@maresb maresb commented Oct 18, 2024

Description

Closes #734

Thanks @AndrewPollard for the report! Indeed the previous error message is not so great. Could you please review what I wrote here? Would this have been more clear for you, or do you have an idea for how to make it better?

@maresb maresb requested a review from a team as a code owner October 18, 2024 09:57
Copy link

netlify bot commented Oct 18, 2024

Deploy Preview for conda-lock ready!

Name Link
🔨 Latest commit 49f9eff
🔍 Latest deploy log https://app.netlify.com/sites/conda-lock/deploys/6712587ed8ea6a0008fea9fd
😎 Deploy Preview https://deploy-preview-735--conda-lock.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@maresb maresb changed the title Improve error message Improve error message when update fails due to channel conflict Oct 18, 2024
if self.metadata.channels != other.metadata.channels:
raise ValueError(
f"Cannot merge locked dependencies when the channels are not "
f"consisitent. {self.metadata.channels} != {other.metadata.channels}. "

Choose a reason for hiding this comment

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

Typo "consisitent" -> "consistent"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thanks!

@maresb maresb force-pushed the improve-error-message branch from 7a92253 to 49f9eff Compare October 18, 2024 12:45
@maresb maresb merged commit ffdfebd into conda:main Oct 18, 2024
43 checks passed
@maresb maresb deleted the improve-error-message branch October 19, 2024 16:41
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.

Unclear error message when adding a new channel
2 participants