Skip to content

Commit

Permalink
better diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLydike committed Jul 30, 2024
1 parent 5a4b08c commit 3893b27
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions filecheck/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ def run(self) -> int:
print("Current position at " + self.file.print_line(), file=sys.stderr)

if self.file.is_discontigous():
print("\nCurrently matching in:", file=sys.stderr)
print(
"\nCurrently matching in range (grey is already matched):",
file=sys.stderr,
)
print("".join(self.file.print_current_range()), file=sys.stderr)

# try to look for a shorter match, and print that if possible
Expand All @@ -148,7 +151,10 @@ def run(self) -> int:
file=sys.stderr,
)
if self.file.is_discontigous():
print("\nCurrently matching in:", file=sys.stderr)
print(
"\nCurrently matching in range (grey is already matched):",
file=sys.stderr,
)
print("".join(self.file.print_current_range()), file=sys.stderr)
return 1

Expand Down

0 comments on commit 3893b27

Please sign in to comment.