Commit eda7dfca authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

flatpak: Add a warning when remotes aren't listed

Should not happen, should have debug information about it.
parent 42fca287
......@@ -852,8 +852,10 @@ bool FlatpakBackend::loadAppsFromAppstreamData(FlatpakInstallation *flatpakInsta
{
Q_ASSERT(flatpakInstallation);
g_autoptr(GPtrArray) remotes = flatpak_installation_list_remotes(flatpakInstallation, m_cancellable, nullptr);
GError *error = nullptr;
g_autoptr(GPtrArray) remotes = flatpak_installation_list_remotes(flatpakInstallation, m_cancellable, &error);
if (!remotes) {
qWarning() << "failed to list remotes" << error->message;
return false;
}
......
Supports Markdown
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