diff options
| author | Jenkins <jenkins@review.openstack.org> | 2011-11-09 15:06:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2011-11-09 15:06:09 +0000 |
| commit | 67c559a3f5eb80ecbb37e95c1e8327017c7d1d28 (patch) | |
| tree | 272f78a0c61553b031d17113d730d612eccc3d24 /bin/stack | |
| parent | 7a0487d0006bb5c8a903d3e2481ef06aebfc47ed (diff) | |
| parent | 0f7f91c2e51586c659ab7e123ddee4d2a5d1f68a (diff) | |
Merge "Bug #884018: "stack help" prints stacktrace if it cannot connect to the server"
Diffstat (limited to 'bin/stack')
| -rwxr-xr-x | bin/stack | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |
