sysprof-cli: avoid erroring on non-zero exit

This commit is contained in:
Christian Hergert
2023-08-09 22:49:24 -07:00
parent f9aae4564a
commit 912f8e8852

View File

@ -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);
}