summaryrefslogtreecommitdiffstats
path: root/bin/stack
diff options
context:
space:
mode:
Diffstat (limited to 'bin/stack')
-rwxr-xr-xbin/stack3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/stack b/bin/stack
index a1c6d1348..c8a99f073 100755
--- a/bin/stack
+++ b/bin/stack
@@ -118,6 +118,9 @@ def do_request(controller, method, params=None):
req = urllib2.Request(url, data, headers)
try:
resp = urllib2.urlopen(req)
+ except urllib2.URLError, e:
+ print 'Failed to connect to %s: %s' % (url, e.reason)
+ sys.exit(1)
except urllib2.HTTPError, e:
print e.read()
sys.exit(1)