From 0c8bfcde8f840d24d35b189e92787672e5a18b1b Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 11 Jun 2013 16:31:08 -0700 Subject: minor: util::bail --- lib/leap_cli/util.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb index c34b5af..f602d89 100644 --- a/lib/leap_cli/util.rb +++ b/lib/leap_cli/util.rb @@ -28,12 +28,12 @@ module LeapCli # # exit with error code and with a message that we are bailing out. # - def bail!(message=nil) + def bail!(*message) if block_given? LeapCli.log_level = 3 yield elsif message - log 0, message + log 0, *message end log 0, :bail, "" raise SystemExit.new(@exit_status || 1) -- cgit v1.2.3