aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorXu Cheng2015-05-27 22:16:48 +0800
committerXu Cheng2015-05-29 17:02:23 +0800
commit3ac2b7b1c6919677a7e1cebcf92d7a18600af07a (patch)
tree4aed4618dc48c9aa22026caae7c7f4dc4837e145 /Library/Homebrew/exceptions.rb
parent12f0472a7dc4a4a562ad329aea21c2cb124537d0 (diff)
downloadbrew-3ac2b7b1c6919677a7e1cebcf92d7a18600af07a.tar.bz2
exceptions: use Formula#full_name
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 28a97bc82..7ae185d00 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -100,7 +100,7 @@ class CannotInstallFormulaError < RuntimeError; end
class FormulaInstallationAlreadyAttemptedError < RuntimeError
def initialize(formula)
- super "Formula installation already attempted: #{formula.name}"
+ super "Formula installation already attempted: #{formula.full_name}"
end
end
@@ -132,7 +132,7 @@ class FormulaConflictError < RuntimeError
def message
message = []
- message << "Cannot install #{formula.name} because conflicting formulae are installed.\n"
+ message << "Cannot install #{formula.full_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.
@@ -193,7 +193,7 @@ class BuildError < RuntimeError
ohai "ENV"
Homebrew.dump_build_env(env)
puts
- onoe "#{formula.name} #{formula.version} did not build"
+ onoe "#{formula.full_name} #{formula.version} did not build"
unless (logs = Dir["#{formula.logs}/*"]).empty?
puts "Logs:"
puts logs.map{|fn| " #{fn}"}.join("\n")
@@ -212,7 +212,7 @@ end
class CompilerSelectionError < RuntimeError
def initialize(formula)
super <<-EOS.undent
- #{formula.name} cannot be built with any available compilers.
+ #{formula.full_name} cannot be built with any available compilers.
To install this formula, you may need to:
brew install gcc
EOS
@@ -273,7 +273,7 @@ end
class ResourceMissingError < ArgumentError
def initialize(formula, resource)
- super "#{formula.name} does not define resource #{resource.inspect}"
+ super "#{formula.full_name} does not define resource #{resource.inspect}"
end
end