fastlane/lib/fastlane/actions/badge.rb in fastlane-2.36.0.beta.20170526010038 vs fastlane/lib/fastlane/actions/badge.rb in fastlane-2.36.0.beta.20170527010029

- old
+ new

@@ -14,10 +14,16 @@ glob: params[:glob], alpha_channel: params[:alpha_channel], shield_gravity: params[:shield_gravity], shield_no_resize: params[:shield_no_resize] } - Badge::Runner.new.run(params[:path], options) + begin + Badge::Runner.new.run(params[:path], options) + rescue => e + # We want to catch this error and raise our own so that we are not counting this as a crash in our metrics + UI.verbose(e.backtrace.join("\n")) + UI.user_error!("Something went wrong while running badge: #{e}") + end end ##################################################### # @!group Documentation #####################################################