Commit a60a664d authored by Eloy Duran's avatar Eloy Duran

Improve error message for missing local pod. Closes #323.

parent fd5c7045
...@@ -223,7 +223,11 @@ module Pod ...@@ -223,7 +223,11 @@ module Pod
end end
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 `#{@specification}'.\n" \
"\tPatterns: #{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