Dump plasmoid errors into console

For some reason, we weren't putting plasmoid loading errors into the console, which interfered with debuggability of errors. Dumping them is useful for debugging.
This commit is contained in:
Jan Blackquill 2021-01-15 15:38:34 -05:00
parent 3c80bc83d9
commit 108939c420

View File

@ -26,6 +26,7 @@
#include <packageurlinterceptor.h>
#include <private/package_p.h>
#include <qloggingcategory.h>
namespace PlasmaQuick
{
@ -613,6 +614,9 @@ void AppletQuickItem::init()
errorData[QStringLiteral("errors")] = QJsonArray::fromStringList({reason});
}
qCWarning(LOG_PLASMAQUICK) << errorData[QStringLiteral("appletName")];
qCWarning(LOG_PLASMAQUICK) << errorData[QStringLiteral("errors")];
d->qmlObject->setSource(d->coronaPackage.fileUrl("appleterror"));
d->qmlObject->completeInitialization();