diff options
| author | Jack Nagel | 2014-06-27 16:10:42 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-27 16:10:42 -0500 |
| commit | 495657552b1c251a0d22ae90fdf0f58f2558eabf (patch) | |
| tree | f8c063326fc2da225990d580ce55b745f66606f6 /Library/Homebrew/formula_installer.rb | |
| parent | 0a80d93cb6583c79b90137237d5a15a667df7838 (diff) | |
| download | homebrew-495657552b1c251a0d22ae90fdf0f58f2558eabf.tar.bz2 | |
Give more detailed information about link errors at install-time
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 41853554e..61d7608cb 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -556,16 +556,23 @@ class FormulaInstaller begin keg.link - rescue Keg::LinkError => e + rescue Keg::ConflictError => e onoe "The `brew link` step did not complete successfully" puts "The formula built, but is not symlinked into #{HOMEBREW_PREFIX}" - puts "You can try again using:" - puts " brew link #{f.name}" + puts e puts puts "Possible conflicting files are:" mode = OpenStruct.new(:dry_run => true, :overwrite => true) keg.link(mode) @show_summary_heading = true + rescue Keg::LinkError => e + onoe "The `brew link` step did not complete successfully" + puts "The formula built, but is not symlinked into #{HOMEBREW_PREFIX}" + puts e + puts + puts "You can try again using:" + puts " brew link #{f.name}" + @show_summary_heading = true rescue Exception => e onoe "An unexpected error occurred during the `brew link` step" puts "The formula built, but is not symlinked into #{HOMEBREW_PREFIX}" |
