Skip to content

Commit aa74f1f

Browse files
author
Gerit Wagner
committed
print linter success info
1 parent 6ad874f commit aa74f1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

search_query/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _cmd_translate(args: argparse.Namespace) -> int:
3535
print(f"Converting from {search_file.platform} to {args.target}")
3636
try:
3737
translated_query = query.translate(args.target)
38-
except Exception as e: # pylint: disble=broad-exception-caught
38+
except Exception as e: # pylint: disable=broad-exception-caught
3939
print(f"Error translating query: {e}")
4040
return 1
4141

@@ -61,6 +61,9 @@ def _lint(args: argparse.Namespace) -> int:
6161
print(f"Error linting file {file_path}: {e}")
6262
exit_code = 1
6363

64+
if exit_code == 0:
65+
print(f"File {file_path} linted successfully.")
66+
6467
return exit_code
6568

6669

0 commit comments

Comments
 (0)