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:
parent
3c80bc83d9
commit
108939c420
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user