aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-10-21 20:16:41 +0100
committerMike McQuaid2013-10-21 20:16:41 +0100
commitb8103eb8fbcd3671dc3244922ae9fc1c9364d391 (patch)
tree676b4e01a237502d7efd964f8257f1d45549f49a /Library/Homebrew/cmd
parentc1fbed124f80b50eab38d3b917bffb96aa927488 (diff)
downloadhomebrew-b8103eb8fbcd3671dc3244922ae9fc1c9364d391.tar.bz2
tap: use dedicated exception for already tapped.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/tap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index 23c63cb5b..21ad00c6e 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -23,7 +23,7 @@ module Homebrew extend self
# we downcase to avoid case-insensitive filesystem issues
tapd = HOMEBREW_LIBRARY/"Taps/#{user.downcase}-#{repo.downcase}"
- raise "Already tapped!" if tapd.directory?
+ raise AlreadyTappedError if tapd.directory?
abort unless system "git clone https://github.com/#{repouser}/homebrew-#{repo} #{tapd}"
files = []