Commit c6e57257 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

fwupd: tell when there's an error message

parent 4d304361
......@@ -429,10 +429,11 @@ void FwupdBackend::checkForUpdates()
g_autoptr(GError) error = nullptr;
/* get devices */
GPtrArray* devices = fwupd_client_get_devices(client, m_cancellable, nullptr);
GPtrArray* devices = fwupd_client_get_devices(client, m_cancellable, &error);
handleError(error);
g_autoptr(GPtrArray) remotes = fwupd_client_get_remotes(client, m_cancellable, &error);
handleError(error);
for(uint i = 0; remotes && i < remotes->len; i++)
{
FwupdRemote *remote = (FwupdRemote *)g_ptr_array_index(remotes, i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment