s4:scripting: Correctly report number of parsed lines
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 10 Jan 2024 22:13:33 +0000 (11:13 +1300)
committerJoseph Sutton <jsutton@samba.org>
Mon, 15 Jan 2024 00:48:40 +0000 (00:48 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/scripting/bin/gen_error_common.py

index 759d059db3d0656af4fb20773600155fe8c0cd6f..f4409bf9f6b90dfddcc5fb41b8767c4c22d8e3b6 100644 (file)
@@ -79,7 +79,7 @@ def parseErrorDescriptions( file_contents, isWinError, transformErrorFunction ):
                             err.err_string = desc
                         else:
                             err.err_string = err.err_string + " " + desc
-            count = count + 1
+        count = count + 1
     print("parsed %d lines generated %d error definitions"%(count,len(errors)))
     return errors