mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Improve transformer explain wording
This commit is contained in:
parent
803e5628a2
commit
25e2abdb03
1 changed files with 2 additions and 2 deletions
|
|
@ -328,10 +328,10 @@ class Transformer:
|
||||||
|
|
||||||
result = rule.transform(path)
|
result = rule.transform(path)
|
||||||
if isinstance(result, PurePath):
|
if isinstance(result, PurePath):
|
||||||
log.explain(f"Match! Transformed to {fmt_path(result)}")
|
log.explain(f"Match found, transformed path to {fmt_path(result)}")
|
||||||
return result
|
return result
|
||||||
elif result: # Exclamation mark
|
elif result: # Exclamation mark
|
||||||
log.explain("Match! Ignored")
|
log.explain("Match found, path ignored")
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue