aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2015-07-19 16:42:40 +0800
committerXu Cheng2015-07-19 16:42:40 +0800
commit842c0227bc7f69211a1feaa6f34c8a85c925c139 (patch)
tree5695cad1b3abdfd7f7f0b5c61a8e6077edc3715a /Library/Homebrew
parent140f8e3df780cee9d69c7d314d62ca0abe4a42de (diff)
downloadbrew-842c0227bc7f69211a1feaa6f34c8a85c925c139.tar.bz2
TapFormulaUnavailableError: add back user and repo method
Fixes Homebrew/homebrew#41888.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/exceptions.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 5b3081767..8e1b722a2 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -51,10 +51,12 @@ class FormulaUnavailableError < RuntimeError
end
class TapFormulaUnavailableError < FormulaUnavailableError
- attr_reader :tap
+ attr_reader :tap, :user, :repo
def initialize tap, name
@tap = tap
+ @user = tap.user
+ @repo = tap.repo
super "#{tap}/#{name}"
end