summaryrefslogtreecommitdiff
path: root/lib/chef/resource_collection.rb
diff options
context:
space:
mode:
authorPaul Mooring <paul@opscode.com>2012-12-28 15:48:47 -0700
committerBryan McLellan <btm@opscode.com>2013-04-12 12:15:13 -0700
commit7618c745a9e80ae793b378d269e9a89c1898b13e (patch)
tree762baa0d6f3ea84b42623fb784591ccc8317c61e /lib/chef/resource_collection.rb
parentee797aed9ad3a6ca0c5a58ee73d6326ce627d5bb (diff)
downloadchef-7618c745a9e80ae793b378d269e9a89c1898b13e.tar.gz
improved error message
Diffstat (limited to 'lib/chef/resource_collection.rb')
-rw-r--r--lib/chef/resource_collection.rb2
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