summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorJose Asuncion <jose.asuncion@gmail.com>2017-09-25 17:00:51 -0700
committerJose Asuncion <jose.asuncion@gmail.com>2017-09-25 17:02:56 -0700
commitd3cf74513829347db86f451cdd3ecc06bab01072 (patch)
tree52bb0cd7e26b15226db7cd60893a8bffb782acb5 /lib/chef/exceptions.rb
parentbdf090c43e46a1aeec80c6b495c6858f9c2d6300 (diff)
parent87feda303b3d8e0bb4fc08b6f7642b44f82c075d (diff)
downloadchef-d3cf74513829347db86f451cdd3ecc06bab01072.tar.gz
Merge branch 'master' into feat/5556
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 91402bc6c2..a73062b676 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -515,7 +515,7 @@ This error is most often caused by network issues (proxies, etc) outside of chef
"Resource #{r['Name']} is a binary resource"
end
end
- super "Found multiple matching resources. #{matches_info.join("\n")}"
+ super "Found multiple resources matching #{matches_info[0]["Module"]["Name"]}:\n#{(matches_info.map { |f| f["Module"]["Version"] }).uniq.join("\n")}"
end
end