Skip to content

Commit 09137b4

Browse files
committed
Display number of files OK when there are multiple files checked and no errors
1 parent ad0a82a commit 09137b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msgcheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
pass
3939

4040
NAME = 'msgcheck.py'
41-
VERSION = '1.9'
41+
VERSION = '2.0'
4242
AUTHOR = 'Sebastien Helleu <[email protected]>'
4343

4444

@@ -386,7 +386,7 @@ def check(self):
386386
if len(args.file) > 1:
387387
print('---')
388388
if errors_total == 0:
389-
print('TOTAL: all OK')
389+
print('TOTAL: %d files OK' % len(args.file))
390390
else:
391391
print('TOTAL: %d files OK, %d files with %d errors' % (len(args.file) - files_with_errors,
392392
files_with_errors, errors_total))

0 commit comments

Comments
 (0)