aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 7afb0db0e..da48d60ca 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -85,7 +85,7 @@ class FormulaAlreadyInstalledError < RuntimeError; end
class FormulaInstallationAlreadyAttemptedError < RuntimeError
def initialize(formula)
- super "Formula installation already attempted: #{formula}"
+ super "Formula installation already attempted: #{formula.name}"
end
end
@@ -175,7 +175,7 @@ class BuildError < RuntimeError
Homebrew.dump_build_env(env)
puts
onoe "#{formula.name} #{formula.version} did not build"
- unless (logs = Dir["#{HOMEBREW_LOGS}/#{formula}/*"]).empty?
+ unless (logs = Dir["#{HOMEBREW_LOGS}/#{formula.name}/*"]).empty?
puts "Logs:"
puts logs.map{|fn| " #{fn}"}.join("\n")
end
@@ -239,7 +239,7 @@ end
class ResourceMissingError < ArgumentError
def initialize(formula, resource)
- super "#{formula} does not define resource #{resource.inspect}"
+ super "#{formula.name} does not define resource #{resource.inspect}"
end
end