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 the error message when failing to lock a package #149

Merged
merged 2 commits into from
Mar 11, 2014

Conversation

piojo-zz
Copy link
Member

I hope this message is more helpful. Better wording will be appreciated.

@jrha
Copy link
Member

jrha commented Feb 25, 2014

Looks much better.
How much useful information is in $wanted_locked?

@piojo-zz
Copy link
Member Author

That set contains, initially, all the packages that were declared with pkg_repl and friends in the profile. It's confusing if it gets dumped upon an error.

At the final stage (in that print) it contains only packages that had wildcards (and therefore we didn't expect to match precisely) or packages that we wanted to match and lock but failed. We only report the latter.

@jrha
Copy link
Member

jrha commented Feb 25, 2014

Ok cool, in that case perhaps the error message should be something like:
The packages above do not seem to exist in any configured repositories.

jouvin added a commit that referenced this pull request Mar 11, 2014
Improve the error message when failing to lock a package
@jouvin jouvin merged commit d280dd8 into quattor:master Mar 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants