diff options
| author | Max Howell | 2009-10-23 16:05:16 +0100 |
|---|---|---|
| committer | Max Howell | 2009-10-23 19:22:51 +0100 |
| commit | 83b57244656f2c79bdf7e41812e82fa5645fd511 (patch) | |
| tree | b70496f9d13964350d4de89a46d81938ebeb7dc9 /Library | |
| parent | 0b7e5cd4eb57445f941b1307d3bdb13d01ac90ec (diff) | |
| download | homebrew-83b57244656f2c79bdf7e41812e82fa5645fd511.tar.bz2 | |
Show backtrace during non fatal install steps if --debug
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/install.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 19fa99b7d..f3ddd34bb 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -96,7 +96,7 @@ def install f rescue Exception => e opoo "The cleaning step did not complete successfully" puts "Still, the installation was successful, so we will link it into your prefix" - ohai e, e.inspect if ARGV.debug? + ohai e, e.backtrace if ARGV.debug? show_summary_heading = true end @@ -122,11 +122,11 @@ def install f else begin Keg.new(f.prefix).link - rescue Exception + rescue Exception => e 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.inspect if ARGV.debug? + ohai e, e.backtrace if ARGV.debug? show_summary_heading = true end end |
