From 1e71a0388df573c78f424fb202f1e373e2a1e770 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 3 Nov 2014 19:22:16 -0500 Subject: Use a real error class when metadata is not found --- lib/chef/exceptions.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/chef/exceptions.rb') 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 -- cgit v1.2.1