aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)