aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorShaun Jackman2017-09-19 12:22:32 -0700
committerShaun Jackman2017-09-28 12:29:23 -0700
commit3ed832d4f0465aa9d938d3f4867ad12aaf394710 (patch)
tree2cc3303acfdfbc1ed4bc1f9ee76a625fef42e34d /Library/Homebrew/exceptions.rb
parent9642ec769e6b187c375964e4206e5ac4014d37fa (diff)
downloadbrew-3ed832d4f0465aa9d938d3f4867ad12aaf394710.tar.bz2
BottleLoader: Use the formula stored in the bottle
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 5418f9331..22a7fe023 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -555,12 +555,12 @@ end
# raised when a single patch file is not found and apply hasn't been specified
class MissingApplyError < RuntimeError; end
-class BottleVersionMismatchError < RuntimeError
- def initialize(bottle_file, bottle_version, formula, formula_version)
+class BottleFormulaUnavailableError < RuntimeError
+ def initialize(bottle_path, formula_path)
super <<-EOS.undent
- Bottle version mismatch
- Bottle: #{bottle_file} (#{bottle_version})
- Formula: #{formula.full_name} (#{formula_version})
+ This bottle does not contain the formula file:
+ #{bottle_path}
+ #{formula_path}
EOS
end
end