diff options
| author | Adam Vandenberg | 2010-03-10 13:29:57 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-11 15:58:17 -0800 |
| commit | 485d4807226594274e90f9c6192e87ee04844393 (patch) | |
| tree | 88f85bd0c94e0b406b0603415876427cb4009287 /Library/Homebrew/global.rb | |
| parent | 07934ce3ab72a1b677609aeb5595f0de5e7de335 (diff) | |
| download | brew-485d4807226594274e90f9c6192e87ee04844393.tar.bz2 | |
Add a snapshot of ENV to BuildError and show some flags with the stack trace.
Diffstat (limited to 'Library/Homebrew/global.rb')
| -rw-r--r-- | Library/Homebrew/global.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 9f2211eb6..4e8ae2810 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -60,4 +60,10 @@ class ExecutionError <RuntimeError end class BuildError <ExecutionError + attr :env + + def initialize cmd, args = [], es = nil + super + @env = ENV.to_hash + end end |
