diff options
| author | Max Howell | 2009-11-06 17:06:12 +0000 |
|---|---|---|
| committer | Max Howell | 2009-11-07 18:22:36 +0000 |
| commit | 1e879eaee8815eebd3bc3f5318f62d1e86b4d62a (patch) | |
| tree | 2ef5b9b6507c4d763c425c5e125bd337a2d0283b /bin | |
| parent | 0ec10c68ca93c86c61463349e455cd4179b64e16 (diff) | |
| download | brew-1e879eaee8815eebd3bc3f5318f62d1e86b4d62a.tar.bz2 | |
Propagate exit status in ExecutioError exception
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -70,8 +70,8 @@ EOS end def please_report_bug; <<-EOS -Please report this bug to #{HOMEBREW_WWW} including the following information: -Mac OS X: #{MACOS_VERSION} +Please report this bug to #{HOMEBREW_WWW} +Mac OS X: #{MACOS_FULL_VERSION} Ponk: #{macports_or_fink_installed?} EOS end @@ -263,7 +263,10 @@ rescue SystemCallError, RuntimeError => e puts e.backtrace else onoe e - puts please_report_bug if e.kind_of? BuildError + if e.kind_of? BuildError + puts please_report_bug + puts "Exit Status: #{e.status}" + end end exit 1 rescue Exception => e |
