diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-07-17 09:42:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-17 09:42:36 -0700 |
commit | 161d2afb331acd28aa03e58f642e613c9fff50aa (patch) | |
tree | 51010ec1fa8406035dab6a501e27ff0af49960b9 | |
parent | 0b2cc39898ab864bab42874654badd99c9d73e9a (diff) | |
parent | f07e44e79af5684dffa762db387ae3bfaa7a7884 (diff) | |
download | chef-161d2afb331acd28aa03e58f642e613c9fff50aa.tar.gz |
Merge pull request #11830 from vkarve-chef/update-unshare-error-message
-rw-r--r-- | knife/lib/chef/knife/supermarket_unshare.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/knife/lib/chef/knife/supermarket_unshare.rb b/knife/lib/chef/knife/supermarket_unshare.rb index 8c86769804..669c217e09 100644 --- a/knife/lib/chef/knife/supermarket_unshare.rb +++ b/knife/lib/chef/knife/supermarket_unshare.rb @@ -50,7 +50,8 @@ class Chef rescue Net::HTTPClientException => e raise e unless /Forbidden/.match?(e.message) - ui.error "Forbidden: You must be the maintainer of #{@cookbook_name} to unshare it." + ui.error "Forbidden: You must be the maintainer of #{@cookbook_name} to unshare it & #{config[:supermarket_site]} must allow maintainers to unshare cookbooks." + ui.warn "The default supermarket #{default_config[:supermarket_site]} does not allow maintainers to unshare cookbooks." exit 1 end |