From 912f8e8852fe442fa7e01e4bc410fb5c661c53e7 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 9 Aug 2023 22:49:24 -0700 Subject: [PATCH] sysprof-cli: avoid erroring on non-zero exit --- src/sysprof-cli/sysprof-cli.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sysprof-cli/sysprof-cli.c b/src/sysprof-cli/sysprof-cli.c index 3ca100d7..9bf79b68 100644 --- a/src/sysprof-cli/sysprof-cli.c +++ b/src/sysprof-cli/sysprof-cli.c @@ -198,7 +198,11 @@ sysprof_cli_wait_cb (GObject *object, g_assert (user_data == NULL); if (!sysprof_recording_wait_finish (recording, result, &error)) - g_error ("Failed to complete recording: %s", error->message); + { + if (error->domain != G_SPAWN_EXIT_ERROR) + g_printerr ("Failed to complete recording: %s\n", + error->message); + } g_main_loop_quit (main_loop); }