Merge pull request #25 from aidanhs/aphs-add-error-details

Add useful error information on non-http error
This commit is contained in:
juj 2015-01-26 11:26:49 +02:00
Родитель ef17aeb616 1a98893ff7
Коммит a84c651a92
1 изменённых файлов: 2 добавлений и 2 удалений

4
emsdk
Просмотреть файл

@ -294,8 +294,8 @@ def download_file(url, dstpath, download_even_if_exists=False):
print "HTTP error with URL '" + url + "': " + str(e)
rmfile(file_name)
return None
except:
print "Error downloading URL '" + url + "'!"
except Exception, e:
print "Error downloading URL '" + url + "': " + str(e)
rmfile(file_name)
return None
return file_name