extensions-tool: Log existing errors

In many cases we currently only indicate failure in the return value,
which is easily missed. Print some meaningful errors instead.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2391
This commit is contained in:
Florian Müllner
2020-03-14 11:00:49 +01:00
parent f5a170ce46
commit 23e382dd33
4 changed files with 31 additions and 7 deletions

View File

@ -60,7 +60,10 @@ list_extensions (ListFilterFlags filter, DisplayFormat format)
NULL,
&error);
if (response == NULL)
return FALSE;
{
g_printerr (_("Failed to connect to GNOME Shell\n"));
return FALSE;
}
extensions = g_variant_get_child_value (response, 0);