aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorJack Nagel2014-09-14 11:18:55 -0500
committerJack Nagel2014-09-14 11:19:30 -0500
commit1f162dba6f2355f3d7f58b5bdd0194c4ccbcdc24 (patch)
tree731eb11a663cc1c67522e210a2162fa26dea799c /Library/Homebrew/exceptions.rb
parent672339b7ca08f791a485f71397b54d7de6ad020f (diff)
downloadhomebrew-1f162dba6f2355f3d7f58b5bdd0194c4ccbcdc24.tar.bz2
Consistently call name on formula instead of relying on to_s
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