aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-09 21:01:23 -0800
committerAdam Vandenberg2011-03-12 11:55:08 -0800
commitf2fff3c510640bdda35dbfadc4f841ef1c85250a (patch)
tree56858e707e3c635ea931a135973325b9f41d5581 /Library/Homebrew/exceptions.rb
parent2f5742dbe8a1d951e1418909de54da5c03773ba2 (diff)
downloadhomebrew-f2fff3c510640bdda35dbfadc4f841ef1c85250a.tar.bz2
Fix 'brew install f' for already-installed brews.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 66ae2b294..28b46198e 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -35,10 +35,7 @@ module Homebrew
class InstallationError < RuntimeError
attr :formula
- def initialize formula
- @formula = formula
- end
- def initialize formula, message
+ def initialize formula, message=""
super message
@formula = formula
end