summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Dibowitz <phil@ipom.com>2015-02-04 12:15:48 -0800
committerPhil Dibowitz <phil@ipom.com>2015-02-04 12:15:48 -0800
commit109ca0cac7ab8150f658ee696fbf6ba351a427ff (patch)
tree19205348b02427f47876a376d3a19fce8b4411f9
parent6eae70225008c8b06601a8343a3f57cb10f3c065 (diff)
downloadchef-109ca0cac7ab8150f658ee696fbf6ba351a427ff.tar.gz
Fix error message in yum provider (related to multipackage refactor)
-rw-r--r--lib/chef/provider/package/yum.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/yum.rb b/lib/chef/provider/package/yum.rb
index c077dfb4c2..40da14413e 100644
--- a/lib/chef/provider/package/yum.rb
+++ b/lib/chef/provider/package/yum.rb
@@ -1146,7 +1146,7 @@ class Chef
log_method = "downgrading"
else
# we bail like yum when the package is older
- raise Chef::Exceptions::Package, "Installed package #{name}-#{@current_resource.version} is newer " +
+ raise Chef::Exceptions::Package, "Installed package #{n}-#{current_version_array[idx]} is newer " +
"than candidate package #{n}-#{v}"
end
end