summaryrefslogtreecommitdiff
path: root/lib/chef/knife/supermarket_unshare.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/supermarket_unshare.rb')
-rw-r--r--lib/chef/knife/supermarket_unshare.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/supermarket_unshare.rb b/lib/chef/knife/supermarket_unshare.rb
index e2dfa33b86..98b6fa5789 100644
--- a/lib/chef/knife/supermarket_unshare.rb
+++ b/lib/chef/knife/supermarket_unshare.rb
@@ -48,7 +48,7 @@ class Chef
begin
rest.delete "#{config[:supermarket_site]}/api/v1/cookbooks/#{@name_args[0]}"
- rescue Net::HTTPServerException => e
+ rescue Net::HTTPClientException => e
raise e unless e.message =~ /Forbidden/
ui.error "Forbidden: You must be the maintainer of #{@cookbook_name} to unshare it."
exit 1