aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-11 16:31:08 -0700
committerelijah <elijah@riseup.net>2013-06-11 16:31:08 -0700
commit0c8bfcde8f840d24d35b189e92787672e5a18b1b (patch)
tree697badf1a729306030df3aedc3c02d8aecd946be
parent275922ce4fa5c7d324d53a1165d9f03485907914 (diff)
downloadleap_cli-0c8bfcde8f840d24d35b189e92787672e5a18b1b.tar.gz
leap_cli-0c8bfcde8f840d24d35b189e92787672e5a18b1b.tar.bz2
minor: util::bail
-rw-r--r--lib/leap_cli/util.rb4
1 files 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)