[chef] Re: graceful failure


Chronological Thread 
  • From: Josiah Kiehl < >
  • To:
  • Subject: [chef] Re: graceful failure
  • Date: Wed, 5 Feb 2014 14:41:04 -0800

I prefer:

Chef::Log.fatal!("Some message", 1) unless condition


On Wed, Feb 5, 2014 at 2:37 PM, James Kessler < " target="_blank"> > wrote:
Hi,

What's the best way to gracefully fail a recipe? Currently I'm doing something like "raise 'some error' unless foo"

Thanks,
-James




Archive powered by MHonArc 2.6.16.

§