aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-07-24 19:39:09 -0500
committerJack Nagel2014-07-24 19:39:09 -0500
commitcd02d3d540b04bc58f687017fb277decb4a05d98 (patch)
treec8ba0aae64490ecaaaaae7f53c0863dad8297bfb /Library/Homebrew
parent07bf57b8eac316a5358d75e701aec14c77170e01 (diff)
downloadbrew-cd02d3d540b04bc58f687017fb277decb4a05d98.tar.bz2
Stop rescuing Exception when making opt link
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 723c35d91..4e185d717 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -539,9 +539,10 @@ class FormulaInstaller
if f.keg_only?
begin
keg.optlink
- rescue Exception
- onoe "Failed to create: #{f.opt_prefix}"
+ rescue Keg::LinkError => e
+ onoe "Failed to create #{f.opt_prefix}"
puts "Things that depend on #{f} will probably not build."
+ puts e
end
return
end