mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Improve transformer explain wording
This commit is contained in:
parent
803e5628a2
commit
25e2abdb03
@ -328,10 +328,10 @@ class Transformer:
|
||||
|
||||
result = rule.transform(path)
|
||||
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
|
||||
elif result: # Exclamation mark
|
||||
log.explain("Match! Ignored")
|
||||
log.explain("Match found, path ignored")
|
||||
return None
|
||||
else:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user