diff options
author | Paul Mooring <paul@opscode.com> | 2012-12-28 15:48:47 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-12 12:15:13 -0700 |
commit | 7618c745a9e80ae793b378d269e9a89c1898b13e (patch) | |
tree | 762baa0d6f3ea84b42623fb784591ccc8317c61e /lib/chef/resource_collection.rb | |
parent | ee797aed9ad3a6ca0c5a58ee73d6326ce627d5bb (diff) | |
download | chef-7618c745a9e80ae793b378d269e9a89c1898b13e.tar.gz |
improved error message
Diffstat (limited to 'lib/chef/resource_collection.rb')
-rw-r--r-- | lib/chef/resource_collection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource_collection.rb b/lib/chef/resource_collection.rb index f6349111cb..5ab7fc608c 100644 --- a/lib/chef/resource_collection.rb +++ b/lib/chef/resource_collection.rb @@ -202,7 +202,7 @@ class Chef resource_name = "#{resource_type}[#{name}]" results << lookup(resource_name) else - raise ArgumentError, "You must have a string like resource_type[name]!" + raise ArgumentError, "Bad string format #{arg}, you must have a string like resource_type[name]!" end return results end |