From cd02d3d540b04bc58f687017fb277decb4a05d98 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 24 Jul 2014 19:39:09 -0500 Subject: [PATCH] Stop rescuing Exception when making opt link --- Library/Homebrew/formula_installer.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 723c35d911..4e185d7179 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