Better error when failing to download supporters lists.
authorCarl Hetherington <cth@carlh.net>
Mon, 24 Jun 2019 22:59:32 +0000 (23:59 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 27 Jun 2019 22:56:47 +0000 (23:56 +0100)
wscript

diff --git a/wscript b/wscript
index e4e0f84b4c90b4ae140e1352cd0b5084327a992b..89bfff194bee6bf5041eb24f13bb64e42fcb6cff 100644 (file)
--- a/wscript
+++ b/wscript
@@ -546,7 +546,7 @@ def download_supporters(can_fail):
     if (r >> 8) == 0:
         r = os.system('curl -s -f https://dcpomatic.com/subscribers.cc?%s > src/wx/subscribers.cc' % urlencode({"until": last_date.strip()}))
     if (r >> 8) != 0 and can_fail:
-        raise Exception("Could not download supporters lists")
+        raise Exception("Could not download supporters lists (%d)", r >> 8)
 
 def build(bld):
     create_version_cc(VERSION, bld.env.CXXFLAGS)