From e2399629c3f784e3c65162708db5926a1b0ac0a4 Mon Sep 17 00:00:00 2001 From: Vitaliy Salnikov Date: Mon, 18 May 2020 14:49:59 +0300 Subject: [PATCH] Fail build on badge generation fail --- xcode/commonFastfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 3877d4d..707bbf6 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -93,14 +93,10 @@ private_lane :add_shield do |options| buildNumber = options[:buildNumber] buildDescription = options[:xcconfig_name].scan(/\p{Upper}/)[1..2].join - begin - add_badge( - shield: "#{buildDescription}-#{buildNumber}-green", - no_badge: true - ) - rescue => err - UI.error(err) - end + add_badge( + shield: "#{buildDescription}-#{buildNumber}-green", + no_badge: true + ) end private_lane :buildConfiguration do |options|