From: Antonio Ospite <ospite@studenti.unina.it>
Date: Sat, 16 Jun 2012 12:33:36 +0000 (+0200)
Subject: winfreed.py: print the URL when the download fails
X-Git-Url: https://git.ao2.it/winfreed.git/commitdiff_plain/5217f1e4d670c94164a15ffe7f46dfa1c6ea738d?ds=sidebyside;hp=6eae74f0c4bde4ad9283e19995607ba74986bf97

winfreed.py: print the URL when the download fails

This makes it easier to understand what pkg failed.
---

diff --git a/winfreed.py b/winfreed.py
index 6a5e7b5..ca3cd32 100755
--- a/winfreed.py
+++ b/winfreed.py
@@ -74,9 +74,9 @@ def download_file(src_url, dest_dir):
         response = urllib2.urlopen(src_url)
     except Exception, e:
         if hasattr(e, 'reason'):
-            print 'Download failed. Reason: ', e.reason
+            print 'Downloading from', src_url, 'failed. Reason: ', e.reason
         elif hasattr(e, 'code'):
-            print 'Download failed. Error code: ', e.code
+            print 'Downloading from', src_url, 'failed. Error code: ', e.code
         return
 
     # get the final URL after possible redirect have been followed