Refer to the real keg when dying because the keg exists

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-14 23:50:17 -05:00
parent d95f467362
commit a81da08732

View File

@ -24,7 +24,8 @@ class FormulaInstaller
def check_install_sanity
if f.installed?
raise CannotInstallFormulaError, "#{f}-#{f.version} already installed"
keg = Keg.new(f.installed_prefix)
raise CannotInstallFormulaError, "#{f}-#{keg.version} already installed"
end
# Building head-only without --HEAD is an error