[gnome-builder] flatpak: log debug message if extension did not resolve
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: log debug message if extension did not resolve
- Date: Tue, 1 Jun 2021 22:22:40 +0000 (UTC)
commit b7f0b27404d41feddb1c448c14e991b6a69beca3
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 1 15:22:28 2021 -0700
flatpak: log debug message if extension did not resolve
src/plugins/flatpak/gbp-flatpak-manifest.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-manifest.c b/src/plugins/flatpak/gbp-flatpak-manifest.c
index cc0a76199..07670e361 100644
--- a/src/plugins/flatpak/gbp-flatpak-manifest.c
+++ b/src/plugins/flatpak/gbp-flatpak-manifest.c
@@ -1157,6 +1157,7 @@ gbp_flatpak_manifest_resolve_extensions (GbpFlatpakManifest *self,
for (guint i = 0; self->sdk_extensions[i]; i++)
{
+ g_autoptr(GError) error = NULL;
g_autofree char *resolved = NULL;
ipc_flatpak_service_call_resolve_extension_sync (service,
@@ -1164,7 +1165,11 @@ gbp_flatpak_manifest_resolve_extensions (GbpFlatpakManifest *self,
self->sdk_extensions[i],
&resolved,
NULL,
- NULL);
+ &error);
+
+ if (error != NULL)
+ g_debug ("Failed to resolve extension %s for SDK %s: %s",
+ self->sdk_extensions[i], sdk, error->message);
if (!ide_str_empty0 (resolved))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]