From b58fb175829423412fd7ecab8b3f49ee474f92cc Mon Sep 17 00:00:00 2001
From: Andrey Lihatskiy <alihatskiy@productengine.com>
Date: Wed, 14 Jul 2021 23:35:45 +0300
Subject: [PATCH] SL-15585 Improved notarization error handling

---
 indra/newview/installers/darwin/apple-notarize.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/indra/newview/installers/darwin/apple-notarize.sh b/indra/newview/installers/darwin/apple-notarize.sh
index b953af81af3..be0f8a5717a 100755
--- a/indra/newview/installers/darwin/apple-notarize.sh
+++ b/indra/newview/installers/darwin/apple-notarize.sh
@@ -36,8 +36,12 @@ if [ -f "$CONFIG_FILE" ]; then
             if [["$status" == "success"]]; then
                 xcrun stapler staple "$app_file"
             elif [["$status" == "invalid"]]; then
+                echo "Notarization error: failed to process the app file"
                 exit 1
             fi
+        elif
+            echo "Notarization error: couldn't get request UUID"
+            exit 1
         fi
     fi
 fi
-- 
GitLab