Added: Debug output in Android app of callback functions

This commit is contained in:
Konrad 2017-10-29 19:40:37 +01:00
parent 2e9f5202e0
commit c41f6a29a5

View File

@ -106,7 +106,13 @@ void LibresapiLocalClient::read()
QJSValue&& params(p.mCallback.engine()->newObject());
params.setProperty("response", receivedMsg);
p.mCallback.call(QJSValueList { params });
QJSValue temp = p.mCallback.call(QJSValueList { params });
if(temp.isError()) {
qDebug()
<< "Uncaught exception:"
<< temp.property("stack").toString()
<< temp.toString();
}
}
// In case of multiple reply coaleshed in the same signal