mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add error message for connectivity issues during bootstrap
This commit is contained in:
parent
49431be44a
commit
f5c5fdebe1
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
# except according to those terms.
|
# except according to those terms.
|
||||||
|
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
|
from socket import error as socket_error
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
|
@ -73,6 +74,9 @@ def download(desc, src, writer, start_byte=0):
|
||||||
except urllib2.URLError, e:
|
except urllib2.URLError, e:
|
||||||
print("Error downloading Rust compiler: %s. The failing URL was: %s" % (e.reason, src))
|
print("Error downloading Rust compiler: %s. The failing URL was: %s" % (e.reason, src))
|
||||||
sys.exit(1)
|
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:
|
except KeyboardInterrupt:
|
||||||
writer.flush()
|
writer.flush()
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue