diff options
author | Seth Vargo <sethvargo@gmail.com> | 2014-11-03 19:22:16 -0500 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2014-12-15 13:49:14 -0500 |
commit | 1e71a0388df573c78f424fb202f1e373e2a1e770 (patch) | |
tree | 868035a60929c11d1256bcd951347ab6170d5453 /lib/chef/exceptions.rb | |
parent | dccc5d1a61597e7e34ed367d191c45b70f9aa18f (diff) | |
download | chef-1e71a0388df573c78f424fb202f1e373e2a1e770.tar.gz |
Use a real error class when metadata is not found
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r-- | lib/chef/exceptions.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb index bf33cb9b52..f5d91c24a6 100644 --- a/lib/chef/exceptions.rb +++ b/lib/chef/exceptions.rb @@ -150,6 +150,11 @@ class Chef class IllegalVersionConstraint < NotImplementedError; end class MetadataNotValid < StandardError; end + class MetadataNotFound < StandardError + def initialize + super "No metadata.rb or metadata.json!" + end + end # File operation attempted but no permissions to perform it class InsufficientPermissions < RuntimeError; end |