jonlives/knife-spork

Confusing error message when cookbook not found

redondos opened this issue · 0 comments

If Berkshelf is enabled, when trying to find a cookbook that's not in the cookbook_path nor there is a Berksfile in the cwd, the error message becomes unclear.

e.g.: knife spork promote production nonexistent

  • with skip_berkshelf: true

    ERROR: Chef::Exceptions::CookbookNotFound: Could not find cookbook 'nonexistent' in any of the sources!

  • with skip_berkshelf: false

    ERROR: Berkshelf::BerksfileNotFound: Berkshelf::BerksfileNotFound