Add context to debug message

This commit is contained in:
Gioacchino Mazzurco 2017-11-01 14:34:01 +01:00
parent 346d5c15a4
commit fe5dd00c4d

View File

@ -107,11 +107,12 @@ void LibresapiLocalClient::read()
params.setProperty("response", receivedMsg);
QJSValue temp = p.mCallback.call(QJSValueList { params });
if(temp.isError()) {
qDebug()
<< "Uncaught exception:"
<< temp.property("stack").toString()
<< temp.toString();
if(temp.isError())
{
qCritical() << __PRETTY_FUNCTION__
<< "JavaScript callback uncaught exception:"
<< temp.property("stack").toString()
<< temp.toString();
}
}