diff options
author | nimisha <nimisha.sharad@msystechnologies.com> | 2017-05-11 16:36:18 +0530 |
---|---|---|
committer | nimisha <nimisha.sharad@msystechnologies.com> | 2017-05-11 16:36:18 +0530 |
commit | d383d9078b99fd3442f0d53f6b65407b9305b641 (patch) | |
tree | 69aa400c699e4a530b984553e8516c0bb6188181 | |
parent | 462f780b54eb12eab0b4cbe419ed5051b92bb1ae (diff) | |
download | chef-d383d9078b99fd3442f0d53f6b65407b9305b641.tar.gz |
Mofified error message to explain connectivity issue due to Proxy settings
Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
-rw-r--r-- | lib/chef/knife.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb index 9c8b984054..18792da44a 100644 --- a/lib/chef/knife.rb +++ b/lib/chef/knife.rb @@ -486,7 +486,8 @@ class Chef ui.error "Failed to authenticate to #{server_url} as #{username} with key #{api_key}" ui.info "Response: #{format_rest_error(response)}" when Net::HTTPForbidden - ui.error "You authenticated successfully to #{server_url} as #{username} but you are not authorized for this action" + ui.error "You authenticated successfully to #{server_url} as #{username} but you are not authorized for this action. + This is possibly a connectivity issue. Please check your proxy settings if any." ui.info "Response: #{format_rest_error(response)}" when Net::HTTPBadRequest ui.error "The data in your request was invalid" |