summaryrefslogtreecommitdiff
path: root/lib/chef/knife/cookbook_site_install.rb
diff options
context:
space:
mode:
authorSeth Vargo <sethvargo@gmail.com>2014-11-03 19:22:16 -0500
committerBryan McLellan <btm@loftninjas.org>2014-12-15 13:49:14 -0500
commit1e71a0388df573c78f424fb202f1e373e2a1e770 (patch)
tree868035a60929c11d1256bcd951347ab6170d5453 /lib/chef/knife/cookbook_site_install.rb
parentdccc5d1a61597e7e34ed367d191c45b70f9aa18f (diff)
downloadchef-1e71a0388df573c78f424fb202f1e373e2a1e770.tar.gz
Use a real error class when metadata is not found
Diffstat (limited to 'lib/chef/knife/cookbook_site_install.rb')
-rw-r--r--lib/chef/knife/cookbook_site_install.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/cookbook_site_install.rb b/lib/chef/knife/cookbook_site_install.rb
index 865f806593..3242dd4297 100644
--- a/lib/chef/knife/cookbook_site_install.rb
+++ b/lib/chef/knife/cookbook_site_install.rb
@@ -179,7 +179,7 @@ class Chef
return md
end
- raise "No metadata.rb or metadata.json!"
+ raise Chef::Exceptions::MetadataNotFound
end
end
end