Skip to content

Commit d327a70

Browse files
committed
fix: more information when mapping rules aren't working right.
1 parent 35e249f commit d327a70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coverage/files.py

+4
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,10 @@ def map(self, path, exists=source_exists):
471471
if new.startswith(("./", ".\\")) and not dot_start:
472472
new = new[2:]
473473
if not exists(new):
474+
self.debugfn(
475+
f"Rule {original_pattern!r} changed {path!r} to {new!r} " +
476+
f"which doesn't exist, continuing"
477+
)
474478
continue
475479
self.debugfn(
476480
f"Matched path {path!r} to rule {original_pattern!r} -> {result!r}, " +

0 commit comments

Comments
 (0)