aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-07-24 19:39:09 -0500
committerJack Nagel2014-07-24 19:39:09 -0500
commita99f76febcae514601abbb81ea4165de811e7b2b (patch)
treea62399e515fd1d99f26930d645f2e0beb8b460e2
parentbe28500cef9eabd0f718cf00493c189f89feebd1 (diff)
downloadhomebrew-a99f76febcae514601abbb81ea4165de811e7b2b.tar.bz2
Stop rescuing Exception when making opt link
-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