From bbef3ae51333ae4f6302aa157888722947034611 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 2 Dec 2021 14:55:07 +0100
Subject: [PATCH] DownloadBinary: only print 'error' for complete failure

---
 cmake/scripts/install_binary_tarfile.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/cmake/scripts/install_binary_tarfile.py b/cmake/scripts/install_binary_tarfile.py
index 7cdf487cbb..5984f1bc5a 100755
--- a/cmake/scripts/install_binary_tarfile.py
+++ b/cmake/scripts/install_binary_tarfile.py
@@ -41,7 +41,7 @@ def install_tarfile(urltarfile, prefix, lcgprefix, with_hash=True, with_link=Tru
   success = False
   while counter < 5 and not success:
     if counter > 0:
-      print("Error in downlodaing, sleeping 20 seconds before retry...")
+      print("Warning: Failed downloading, sleeping 20 seconds before retry...")
       time.sleep(20)
     counter += 1
     try:
@@ -51,12 +51,13 @@ def install_tarfile(urltarfile, prefix, lcgprefix, with_hash=True, with_link=Tru
       tar.extractall(path=prefix)
       success = True
     except urllib2.HTTPError as detail:
-      print('Error downloading %s : %s' % (urltarfile, detail))
+      print('Failed downloading %s : %s' % (urltarfile, detail))
     except tarfile.ReadError as detail:
-      print('Error untaring %s : %s' %(urltarfile, detail))
+      print('Failed untaring %s : %s' % (urltarfile, detail))
     except:
       print('Unexpected error:', sys.exc_info()[0])
   if not success:
+    print("Error: Completely failed to download file:", urltarfile)
     sys.exit(1)
 
   #---rename the version directory----------------------------------------------
-- 
GitLab