Commit 3a718124 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Pass a string to grab the error message

BUG: 382916
parent 3592feda
......@@ -99,11 +99,12 @@ PackageKitBackend::~PackageKitBackend()
void PackageKitBackend::delayedInit()
const bool b = m_appdata.load();
QString error;
const bool b = m_appdata.load(&error);
if (!b && m_packages.packages.isEmpty()) {
qWarning() << "Could not open the AppStream metadata pool";
qWarning() << "Could not open the AppStream metadata pool" << error;
QTimer::singleShot(0, this, [this]() {
Q_EMIT passiveMessage(i18n("Please make sure that Appstream is properly set up on your system"));
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