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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 55444469f..2199d27d3 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -76,7 +76,7 @@ class TapFormulaAmbiguityError < RuntimeError
@paths = paths
@formulae = paths.map do |path|
path.to_s =~ HOMEBREW_TAP_PATH_REGEX
- "#{$1}/#{$2.sub("homebrew-", "")}/#{path.basename(".rb")}"
+ "#{Tap.fetch($1, $2)}/#{path.basename(".rb")}"
end
super <<-EOS.undent