Commit 4ec83193 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

fwupd: Make sure we don't crash trying to print an error

BUG: 455132

(cherry picked from commit cc0fc02a)
parent 5bf1db72
Pipeline #209414 passed with stage
in 1 minute and 3 seconds
......@@ -134,7 +134,7 @@ void FwupdSourcesBackend::proceed()
if (fwupd_client_modify_remote(backend->client, fwupd_remote_get_id(remote), "Enabled", "true", nullptr, &error))
m_currentItem->setData(Qt::Checked, Qt::CheckStateRole);
qWarning() << "could not enable remote" << remote << error->message;
qWarning() << "could not enable remote" << remote << (error ? error->message : "");
m_currentItem = nullptr;
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