tools: record: use the right exit code when the output file is missing

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-03-16 16:13:27 +10:00
parent 6ed3a0b079
commit 2b3fd5aa30

View file

@ -2582,6 +2582,7 @@ main(int argc, char **argv)
if (ctx.timeout > 0 && output_arg == NULL) {
fprintf(stderr,
"Option --autorestart requires --output-file\n");
rc = EXIT_INVALID_USAGE;
goto out;
}