Commit 8fc256dc authored by Fabio Pelosin's avatar Fabio Pelosin

Merge branch 'master' into develop

* master:
  List all the specifications of a local pod.
  Improve error message for missing local pod. Closes #323.
parents 49e37aa8 d1957dc0
...@@ -357,7 +357,12 @@ module Pod ...@@ -357,7 +357,12 @@ module Pod
# @return [Array<Pathname>] A list of the paths. # @return [Array<Pathname>] A list of the paths.
# #
def expanded_paths(patterns, options = {}) def expanded_paths(patterns, options = {})
raise Informative, "[Local Pod] Attempt to resolve paths for non existent pod." unless exists? unless exists?
raise Informative, "[Local Pod] Attempt to resolve paths for nonexistent pod.\n" \
"\tSpecifications: #{@specifications.inspect}\n" \
"\t Patterns: #{patterns.inspect}\n" \
"\t Options: #{options.inspect}"
end
patterns = [ patterns ] if patterns.is_a? String patterns = [ patterns ] if patterns.is_a? String
patterns.map do |pattern| patterns.map do |pattern|
......
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