Commit a84d4b6c authored by Eloy Durán's avatar Eloy Durán

Merge pull request #84 from mk/master

Show available versions of a Pod when the required version can't be found
parents da1fcacc 1e02c780
......@@ -61,7 +61,7 @@ module Pod
# Return the first version that matches the current dependency.
def required_version
versions.find { |v| dependency.match?(name, v) } ||
raise(Informative, "Required version (#{dependency}) not found for `#{name}'.")
raise(Informative, "Required version (#{dependency}) not found for `#{name}'.\nAvailable versions: #{versions.join(', ')}")
end
def ==(other)
......
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