From 74a081e08df276154ef6722c25da16b788f978cf Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 15 Aug 2010 17:17:59 -0700 Subject: [PATCH] Make errors during link step more visible. --- Library/Homebrew/install.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 8db43282d0..b4ead5a279 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -162,7 +162,11 @@ def install f onoe "The linking step did not complete successfully" puts "The package built, but is not symlinked into #{HOMEBREW_PREFIX}" puts "You can try again using `brew link #{f.name}'" - ohai e, e.backtrace if ARGV.debug? + if ARGV.debug? + ohai e, e.backtrace + else + onoe e + end show_summary_heading = true end end