Skip to content

Commit 820113c

Browse files
authored
return non-zero exit code when record_writer crashes during teardown (#176)
1 parent 556fef9 commit 820113c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flow/record/tools/rdump.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ def main(argv: list[str] | None = None) -> int:
330330
record_writer.__exit__()
331331
except Exception as e:
332332
print_error(e)
333+
ret = 1
333334

334335
if (args.list or args.stats) and not args.progress:
335336
print(f"Processed {count} records", file=sys.stdout if args.list else sys.stderr)

0 commit comments

Comments
 (0)