[gnome-builder] flatpak: print why we failed to locate a runtime
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: print why we failed to locate a runtime
- Date: Tue, 1 Jun 2021 19:58:54 +0000 (UTC)
commit 0cabdc1ace886e1f3dfcf210c895db9b4a920cf9
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 1 12:58:49 2021 -0700
flatpak: print why we failed to locate a runtime
src/plugins/flatpak/gbp-flatpak-manifest.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-manifest.c b/src/plugins/flatpak/gbp-flatpak-manifest.c
index 603978516..cc0a76199 100644
--- a/src/plugins/flatpak/gbp-flatpak-manifest.c
+++ b/src/plugins/flatpak/gbp-flatpak-manifest.c
@@ -554,6 +554,7 @@ find_extension (GbpFlatpakManifest *self,
{
g_autoptr(IpcFlatpakService) service = NULL;
g_autoptr(GVariant) info = NULL;
+ g_autoptr(GError) error = NULL;
GbpFlatpakClient *client;
IdeContext *context;
@@ -565,8 +566,8 @@ find_extension (GbpFlatpakManifest *self,
context = ide_object_get_context (IDE_OBJECT (self));
if ((client = gbp_flatpak_client_from_context (context)) &&
- (service = gbp_flatpak_client_get_service (client, NULL, NULL)) &&
- ipc_flatpak_service_call_get_runtime_sync (service, runtime_id, &info, NULL, NULL))
+ (service = gbp_flatpak_client_get_service (client, NULL, &error)) &&
+ ipc_flatpak_service_call_get_runtime_sync (service, runtime_id, &info, NULL, &error))
{
GbpFlatpakRuntime *ret = NULL;
const gchar *name;
@@ -596,6 +597,10 @@ find_extension (GbpFlatpakManifest *self,
IDE_RETURN (IDE_RUNTIME (g_steal_pointer (&ret)));
}
+ if (error != NULL)
+ g_debug ("find_extension() could not resolve runtime %s: %s",
+ runtime_id, error->message);
+
IDE_RETURN (NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]