diff options
author | S <pathway27@gmail.com> | 2016-08-17 00:52:51 +0000 |
---|---|---|
committer | S <pathway27@gmail.com> | 2016-08-17 01:13:18 +0000 |
commit | f5c5fdebe1467d430c6539dfde0244fcc6141a52 (patch) | |
tree | 4b9533c8463d43415d1a2939c1ce15e0d3803f0b /python/servo/bootstrap_commands.py | |
parent | 49431be44a7bbc256829463f4ec4658801742bd9 (diff) | |
download | servo-f5c5fdebe1467d430c6539dfde0244fcc6141a52.tar.gz servo-f5c5fdebe1467d430c6539dfde0244fcc6141a52.zip |
Add error message for connectivity issues during bootstrap
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index bd074b41dec..8f7c7182735 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -8,6 +8,7 @@ # except according to those terms. from __future__ import print_function, unicode_literals +from socket import error as socket_error import base64 import json @@ -73,6 +74,9 @@ def download(desc, src, writer, start_byte=0): except urllib2.URLError, e: print("Error downloading Rust compiler: %s. The failing URL was: %s" % (e.reason, src)) sys.exit(1) + except socket_error, e: + print("Looks like there's a connectivity issue, check your Internet connection. %s" % (e)) + sys.exit(1) except KeyboardInterrupt: writer.flush() raise |