Skip to content

Commit 3fc182a

Browse files
dougalbbwbarrett
authored andcommitted
Small fixes to improve HTTP config sanity check error messages.
1 parent d37f705 commit 3fc182a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/cfncluster/config_sanity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ def check_resource(region, aws_access_key_id, aws_secret_access_key, resource_ty
9797
try:
9898
urllib.request.urlopen(resource_value)
9999
except urllib.error.HTTPError as e:
100-
print(e.code)
100+
print('Config sanity error:', resource_value, e.code, e.reason)
101101
sys.exit(1)
102102
except urllib.error.URLError as e:
103-
print(e.args)
103+
print('Config sanity error:', resource_value, e.reason)
104104
sys.exit(1)
105105
# EC2 EBS Snapshot Id
106106
elif resource_type == 'EC2Snapshot':

0 commit comments

Comments
 (0)