In #364, I accidentally produced a file that (apparently) has empty
section filenames, as understood by the extension. This lead to an
undefined property access (split) when trying to work with the file
name; that exception propagated all the way up the rendering stack,
resulting in no coverage being displayed.
With this change, if we encounter an error in checkSection, we just return
false - if it's an erroneous section, it doesn't apply to the current
file. (This is especially true if there is no section.file property!)
In #364, I accidentally produced a file that (apparently) has empty section filenames, as understood by the extension. This lead to an undefined property access (
split
) when trying to work with the file name; that exception propagated all the way up the rendering stack, resulting in no coverage being displayed.With this change, if we encounter an error in
checkSection
, we just returnfalse
- if it's an erroneous section, it doesn't apply to the current file. (This is especially true if there is nosection.file
property!)This way, we still show coverage wherever we can.