lib/honeybadger/cli/main.rb in honeybadger-3.0.0.beta1 vs lib/honeybadger/cli/main.rb in honeybadger-3.0.0.beta2

- old
+ new

@@ -53,11 +53,11 @@ def deploy config = build_config(options) if config.get(:api_key).to_s =~ BLANK say("No value provided for required options '--api-key'") - return + exit(1) end Deploy.new(options, [], config).run rescue => e log_error(e) @@ -76,27 +76,27 @@ def notify config = build_config(options) if config.get(:api_key).to_s =~ BLANK say("No value provided for required options '--api-key'") - return + exit(1) end Notify.new(options, [], config).run rescue => e log_error(e) exit(1) end desc 'exec', 'Execute a command. If the exit status is not 0, report the result to Honeybadger' project_options - option :quiet, required: false, type: :boolean, aliases: :'-q', default: false, desc: 'Suppress all output unless Honeybdager notification fails.' + option :quiet, required: false, type: :boolean, aliases: :'-q', default: false, desc: 'Suppress all output unless notification fails.' def exec(*args) config = build_config(options) if config.get(:api_key).to_s =~ BLANK say("No value provided for required options '--api-key'") - return + exit(1) end Exec.new(options, args, config).run rescue => e log_error(e)