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 depsolver error message #40

Merged
merged 2 commits into from
Oct 29, 2013
Merged

improve depsolver error message #40

merged 2 commits into from
Oct 29, 2013

Conversation

lamont-granquist
Copy link
Contributor

  • at least return the last cookbook that failed inside the recursive
    bowels of the depsolver. not sure if this will produce a slightly
    misleading error messge in the case of a cookbook resolution failure,
    but it should give at least point at a cookbook that has a problem.

- at least return the last cookbook that failed inside the recursive
  bowels of the depsolver.  not sure if this will produce a slightly
  misleading error messge in the case of a cookbook resolution failure,
  but it should give at least point at a cookbook that has a problem.
@sethvargo
Copy link
Contributor

I think we should refactor the depsolver into its own class (or use an existing one) and actually return an object that has methods such as result and error_message. Thoughts?

@lamont-granquist
Copy link
Contributor Author

well, i got (notimeforthat), but sure...

in the meantime, though, the existing error messages are completely unusable if you've got a mess of deps...

@lamont-granquist
Copy link
Contributor Author

(we also keep talking about nuking the depsolver out of the server, in which case this code already has an execution date...)

@jkeiser
Copy link
Contributor

jkeiser commented Oct 29, 2013

This is significantly better than what we have, which is nothing.

jkeiser added a commit that referenced this pull request Oct 29, 2013
@jkeiser jkeiser merged commit adf232f into chef:master Oct 29, 2013
@sethvargo sethvargo deleted the lcg/better-depsolver-error branch October 29, 2013 15:01
@eklein
Copy link

eklein commented Oct 29, 2013

thanks for merging this!! 👍

@chef chef locked and limited conversation to collaborators Nov 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.

4 participants