From 1e879eaee8815eebd3bc3f5318f62d1e86b4d62a Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 6 Nov 2009 17:06:12 +0000 Subject: Propagate exit status in ExecutioError exception --- Library/Homebrew/formula.rb | 2 +- Library/Homebrew/global.rb | 5 ++++- Library/Homebrew/utils.rb | 8 ++------ 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6dca1faa2..0cf351ba2 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -235,7 +235,7 @@ protected end end rescue - raise BuildError.new(cmd, args) + raise BuildError.new(cmd, args, $?) end private diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 946ce6669..8b9aba4b2 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -57,8 +57,11 @@ HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY class ExecutionError