Commit 590edcea authored by Nate West's avatar Nate West

Merge pull request #5371 from CocoaPods/help-validation

[Repo Push] Help validation
parents 277eb7ad fe5819e0
...@@ -49,14 +49,13 @@ module Pod ...@@ -49,14 +49,13 @@ module Pod
end end
def validate! def validate!
super
help! 'A spec-repo name is required.' unless @repo help! 'A spec-repo name is required.' unless @repo
unless @source.repo.directory? unless @source.repo.directory?
raise Informative, raise Informative,
"Unable to find the `#{@repo}` repo. " \ "Unable to find the `#{@repo}` repo. " \
'If it has not yet been cloned, add it via `pod repo add`.' 'If it has not yet been cloned, add it via `pod repo add`.'
end end
super
end end
def run def run
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment