Merge pull request #1087 from Emotyco/libresapilocal_debug

Added: Debug output in Android app of callback functions
This commit is contained in:
Gioacchino 2017-11-01 14:13:04 +01:00 committed by GitHub
commit 346d5c15a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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