summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-12 12:36:14 -0700
committerGitHub <noreply@github.com>2018-03-12 12:36:14 -0700
commit797fe20ea3b529a36dc6a88e6101d3544b9ecb70 (patch)
tree23213fffe8302dda586746fc2c16412bfc3193b0 /lib/chef/exceptions.rb
parentde0ed26e4b0a42f3af827912339ecae65253b52b (diff)
parent2e94dd8d733b9bae92228f4eca2dcdb0c58594c3 (diff)
downloadchef-797fe20ea3b529a36dc6a88e6101d3544b9ecb70.tar.gz
Merge pull request #6253 from jeunito/feat/5556
Knife should give a useful error when the chef_server_url isn't a chef server API
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 1ed71d2a55..cd825895b0 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -521,5 +521,7 @@ This error is most often caused by network issues (proxies, etc) outside of chef
# exception specific to invalid usage of 'dsc_resource' resource
class DSCModuleNameMissing < ArgumentError; end
+
+ class NotAChefServerException < ArgumentError; end
end
end