Skip to content

Commit

Permalink
cli: log parsing errors to stderr
Browse files Browse the repository at this point in the history
Error messages should always be logged to stderr not stdout.
I found this while working on:
containers/podman#19635

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 authored and haircommander committed Aug 16, 2023
1 parent b0bdc23 commit adc748c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int initialize_cli(int argc, char *argv[])

GError *error = NULL;
if (!g_option_context_parse(context, &argc, &argv, &error)) {
g_print("conmon: option parsing failed: %s\n", error->message);
g_printerr("conmon: option parsing failed: %s\n", error->message);
exit(EXIT_FAILURE);
}

Expand Down

0 comments on commit adc748c

Please sign in to comment.