summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-23 14:38:54 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-23 14:38:54 -0500
commitd327a70d9b81833c0ce22f2046b1d93892c1e72d (patch)
tree58cd19e67af8695aaf1e2bdd7a012adf0fbc19a2 /coverage/files.py
parent35e249ff74cfcbc44889107cfcca785696dc4288 (diff)
downloadpython-coveragepy-git-d327a70d9b81833c0ce22f2046b1d93892c1e72d.tar.gz
fix: more information when mapping rules aren't working right.
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 7443f8c9..05c98eec 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -471,6 +471,10 @@ class PathAliases:
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}, " +