mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 10:24:44 +00:00
Fix single match output (#12920)
This commit is contained in:
committed by
Andreas Rumpf
parent
18e2ea787e
commit
f9f55a23bb
@@ -658,6 +658,8 @@ else:
|
||||
walker(rep, f, counter, errors)
|
||||
if errors != 0:
|
||||
printError $errors & " errors"
|
||||
if counter == 1:
|
||||
stdout.write("\n")
|
||||
stdout.write($counter & " matches\n")
|
||||
if errors != 0:
|
||||
quit(1)
|
||||
|
||||
Reference in New Issue
Block a user