mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Log a message if CGenericDBusInterface::callDBusRet failed with error
This commit is contained in:
committed by
Klaus Basan
parent
c27d401e70
commit
425274d9c2
@@ -16,6 +16,7 @@
|
||||
#include <QDBusAbstractInterface>
|
||||
#include <QDBusPendingCall>
|
||||
#include <QDBusPendingReply>
|
||||
#include <QDBusError>
|
||||
#include <QObject>
|
||||
#include <QMetaMethod>
|
||||
|
||||
@@ -80,6 +81,11 @@ namespace BlackMisc
|
||||
{
|
||||
QList<QVariant> argumentList { QVariant::fromValue(std::forward<Args>(args))... };
|
||||
QDBusPendingReply<Ret> pr = this->asyncCallWithArgumentList(method, argumentList);
|
||||
pr.waitForFinished();
|
||||
if(pr.isError())
|
||||
{
|
||||
CLogMessage(this).debug("CGenericDBusInterface::callDBusRet(%1) returned: %2") << method << pr.error().message();
|
||||
}
|
||||
return pr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user