summaryrefslogtreecommitdiff
path: root/lib/chef/knife/supermarket_share.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/supermarket_share.rb')
-rw-r--r--lib/chef/knife/supermarket_share.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/supermarket_share.rb b/lib/chef/knife/supermarket_share.rb
index a47e16bd8c..bee90a9113 100644
--- a/lib/chef/knife/supermarket_share.rb
+++ b/lib/chef/knife/supermarket_share.rb
@@ -116,7 +116,7 @@ class Chef
data = noauth_rest.get("#{config[:supermarket_site]}/api/v1/cookbooks/#{@name_args[0]}")
data["category"]
rescue => e
- return "Other" if e.kind_of?(Net::HTTPServerException) && e.response.code == "404"
+ return "Other" if e.kind_of?(Net::HTTPClientException) && e.response.code == "404"
ui.fatal("Unable to reach Supermarket: #{e.message}. Increase log verbosity (-VV) for more information.")
Chef::Log.trace("\n#{e.backtrace.join("\n")}")
exit(1)