Skip to content

Commit

Permalink
fix: more information when mapping rules aren't working right.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Dec 23, 2022
1 parent 35e249f commit d327a70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coverage/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@ def map(self, path, exists=source_exists):
if new.startswith(("./", ".\\")) and not dot_start:
new = new[2:]
if not exists(new):
self.debugfn(
f"Rule {original_pattern!r} changed {path!r} to {new!r} " +
f"which doesn't exist, continuing"
)
continue
self.debugfn(
f"Matched path {path!r} to rule {original_pattern!r} -> {result!r}, " +
Expand Down

0 comments on commit d327a70

Please sign in to comment.