aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 8e082a7ce..6e1f59633 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -24,7 +24,9 @@ class FormulaInstaller
def check_install_sanity
if f.installed?
- raise CannotInstallFormulaError, "#{f}-#{f.installed_version} already installed"
+ msg = "#{f}-#{f.installed_version} already installed"
+ msg << ", it's just not linked" if not f.linked_keg.symlink? and not f.keg_only?
+ raise CannotInstallFormulaError, msg
end
# Building head-only without --HEAD is an error