Commit a832d24b authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::Search] Catch DSL errors and present a warning.

parent 32610ae6
...@@ -32,7 +32,13 @@ module Pod ...@@ -32,7 +32,13 @@ module Pod
def run def run
sets = Source.search_by_name(@query.strip, @full_text_search) sets = Source.search_by_name(@query.strip, @full_text_search)
sets.each { |set| UI.pod(set, (@stats ? :stats : :normal)) } sets.each do |set|
begin
UI.pod(set, (@stats ? :stats : :normal))
rescue DSLError => e
UI.warn "Skipping `#{set.name}` because the podspec contains errors."
end
end
end end
end end
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