format error output
This commit is contained in:
parent
ed7d186510
commit
e00bae87f8
@ -58,11 +58,11 @@ QJSValue DoricNativeJSE::invokeObject(QString objectName, QString functionName,
|
|||||||
|
|
||||||
QJSValue result = function.call(args);
|
QJSValue result = function.call(args);
|
||||||
if (result.isError()) {
|
if (result.isError()) {
|
||||||
qDebug() << "Uncaught exception at line"
|
qDebug() << "++++++++++++++++++++++++";
|
||||||
|
qCritical() << "Uncaught exception at line"
|
||||||
<< result.property("lineNumber").toInt() << ":"
|
<< result.property("lineNumber").toInt() << ":"
|
||||||
<< result.toString();
|
<< result.toString();
|
||||||
QStringList stacktraces = result.property("stack").toString().split("\n");
|
QStringList stacktraces = result.property("stack").toString().split("\n");
|
||||||
qDebug() << "++++++++++++++++++++++++";
|
|
||||||
foreach (QString stacktrace, stacktraces) { qDebug() << stacktrace; }
|
foreach (QString stacktrace, stacktraces) { qDebug() << stacktrace; }
|
||||||
qDebug() << "------------------------";
|
qDebug() << "------------------------";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user