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

minimum viable depsolving exception handling fix #1136

Merged
merged 1 commit into from Apr 17, 2014
Merged

minimum viable depsolving exception handling fix #1136

merged 1 commit into from Apr 17, 2014

Conversation

lamont-granquist
Copy link
Contributor

If you typo the "chef-client" cookbook as "chef_client" this code
produces:

  Unable to satisfy constraints on package chef_client, which does not
  exist, due to solution constraint (sk_role_base = 0.0.16). Solution
  constraints that may result in a constraint on chef_client:
  [(sk_role_base = 0.0.16) -> (chef_client >= 0.0.0)]
  Missing artifacts: chef_client
  Demand that cannot be met: (sk_role_base = 0.0.16)
  Unable to find a solution for demands: sk_role_base (0.0.16)

Previous code only prints:

  Unable to find a solution for demands: sk_role_base (0.0.16)

Which is useless to figure out what you need to fix.

If you typo the "chef-client" cookbook as "chef_client" this code
produces:

  Unable to satisfy constraints on package chef_client, which does not
  exist, due to solution constraint (sk_role_base = 0.0.16). Solution
  constraints that may result in a constraint on chef_client:
  [(sk_role_base = 0.0.16) -> (chef_client >= 0.0.0)]
  Missing artifacts: chef_client
  Demand that cannot be met: (sk_role_base = 0.0.16)
  Unable to find a solution for demands: sk_role_base (0.0.16)

Previous code only prints:

  Unable to find a solution for demands: sk_role_base (0.0.16)

Which is useless to figure out you need to fix.
@lamont-granquist
Copy link
Contributor Author

this addresses the berkshelf half of #1130

sethvargo added a commit that referenced this pull request Apr 17, 2014
@sethvargo sethvargo merged commit ab1844e into berkshelf:master Apr 17, 2014
@lamont-granquist lamont-granquist deleted the lcg/patch-error-handling branch April 17, 2014 20:53
@reset
Copy link
Contributor

reset commented Apr 17, 2014

Thanks @lamont-granquist

@berkshelf berkshelf locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants