lib/covered/source.rb in covered-0.9.0 vs lib/covered/source.rb in covered-0.10.0

- old
+ new

@@ -108,14 +108,15 @@ elsif File.exist?(path) Parser::CurrentRuby.parse_file(path) else warn "Couldn't parse #{path}, file doesn't exist?" end + rescue + warn "Couldn't parse #{path}: #{$!}" end def each(&block) @output.each do |coverage| - # This is a little bit inefficient, perhaps add a cache layer? if top = parse(coverage.path) self.expand(top, coverage) end yield coverage.freeze