migrator: use Tap#core_tap?
This commit is contained in:
parent
041c8502c5
commit
bfb44d9e67
@ -27,7 +27,7 @@ class Migrator
|
||||
|
||||
class MigratorDifferentTapsError < RuntimeError
|
||||
def initialize(formula, tap)
|
||||
msg = if tap == "Homebrew/homebrew"
|
||||
msg = if tap.core_tap?
|
||||
"Please try to use #{formula.oldname} to refer the formula.\n"
|
||||
elsif tap
|
||||
"Please try to use fully-qualified #{tap}/#{formula.oldname} to refer the formula.\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user