Commit 1e02c780 authored by Martin Kavalar's avatar Martin Kavalar

Show available versions of a Pod when the required version can't be found.

parent da1fcacc
......@@ -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