aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorJack Nagel2014-09-12 21:27:00 -0500
committerJack Nagel2014-09-12 21:31:48 -0500
commit1ae61f770b380c67d38ae2692dc8672e63ad2462 (patch)
tree54e852ef4bec4c8c2e28590948c39c780b74ee47 /Library/Homebrew/exceptions.rb
parent112c59e41d8d1957bf83d4e85e38f4da9ca2f4ff (diff)
downloadhomebrew-1ae61f770b380c67d38ae2692dc8672e63ad2462.tar.bz2
Make parameter names match superclass parameter names
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 9cb0fcb9c..b74234c35 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -113,12 +113,12 @@ class UnsatisfiedRequirements < Homebrew::InstallationError
end
class FormulaConflictError < Homebrew::InstallationError
- attr_reader :f, :conflicts
+ attr_reader :conflicts
- def initialize(f, conflicts)
- @f = f
+ def initialize(formula, conflicts)
@conflicts = conflicts
- super f, message
+ @formula = formula
+ super formula, message
end
def conflict_message(conflict)
@@ -130,7 +130,7 @@ class FormulaConflictError < Homebrew::InstallationError
def message
message = []
- message << "Cannot install #{f.name} because conflicting formulae are installed.\n"
+ message << "Cannot install #{formula.name} because conflicting formulae are installed.\n"
message.concat conflicts.map { |c| conflict_message(c) } << ""
message << <<-EOS.undent
Please `brew unlink #{conflicts.map(&:name)*' '}` before continuing.
@@ -204,9 +204,9 @@ end
# raised by CompilerSelector if the formula fails with all of
# the compilers available on the user's system
class CompilerSelectionError < Homebrew::InstallationError
- def initialize f
- super f, <<-EOS.undent
- #{f.name} cannot be built with any available compilers.
+ def initialize formula
+ super formula, <<-EOS.undent
+ #{formula.name} cannot be built with any available compilers.
To install this formula, you may need to:
brew install gcc
EOS