From c142e4ceaf4bfdf4b21c36dadbc8303e8f472a7a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 12 Sep 2014 21:28:25 -0500 Subject: Use the superclass properly --- Library/Homebrew/exceptions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index b74234c35..add29a2f0 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -95,8 +95,8 @@ class CannotInstallFormulaError < RuntimeError; end class FormulaAlreadyInstalledError < RuntimeError; end class FormulaInstallationAlreadyAttemptedError < Homebrew::InstallationError - def message - "Formula installation already attempted: #{formula}" + def initialize(formula) + super formula, "Formula installation already attempted: #{formula}" end end -- cgit v1.2.3