Commit 809745bd authored by Fabio Pelosin's avatar Fabio Pelosin

[Specification] Raise if it can't find a subspec.

parent 9f1b33b1
...@@ -327,6 +327,8 @@ module Pod ...@@ -327,6 +327,8 @@ module Pod
# If this was the last component in the name, then return the subspec, # If this was the last component in the name, then return the subspec,
# otherwise we recursively keep calling subspec_by_name until we reach the # otherwise we recursively keep calling subspec_by_name until we reach the
# last one and return that # last one and return that
raise Informative, "Unable to find a subspec named `#{name}'." unless subspec
remainder.empty? ? subspec : subspec.subspec_by_name(name) remainder.empty? ? subspec : subspec.subspec_by_name(name)
end end
......
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