Skip to content

Commit

Permalink
Fix slack crash in case of exception (#12494)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacohn authored and Josh Holtz committed May 15, 2018
1 parent 180ada5 commit 7f682d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastlane/lib/fastlane/actions/slack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def self.run(options)
rescue => exception
UI.error("Exception: #{exception}")
ensure
result = results.first
result = results.first if results
if !result.nil? && result.code.to_i == 200
UI.success('Successfully sent Slack notification')
else
Expand Down

0 comments on commit 7f682d0

Please sign in to comment.