From e00bae87f806632f40d1a3511e7f89d6b63651f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Mon, 8 Feb 2021 11:41:57 +0800 Subject: [PATCH] format error output --- doric-Qt/doric/engine/DoricNativeJSE.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doric-Qt/doric/engine/DoricNativeJSE.cpp b/doric-Qt/doric/engine/DoricNativeJSE.cpp index 0bb2bfc7..c2f643e1 100644 --- a/doric-Qt/doric/engine/DoricNativeJSE.cpp +++ b/doric-Qt/doric/engine/DoricNativeJSE.cpp @@ -58,11 +58,11 @@ QJSValue DoricNativeJSE::invokeObject(QString objectName, QString functionName, QJSValue result = function.call(args); if (result.isError()) { - qDebug() << "Uncaught exception at line" - << result.property("lineNumber").toInt() << ":" - << result.toString(); - QStringList stacktraces = result.property("stack").toString().split("\n"); qDebug() << "++++++++++++++++++++++++"; + qCritical() << "Uncaught exception at line" + << result.property("lineNumber").toInt() << ":" + << result.toString(); + QStringList stacktraces = result.property("stack").toString().split("\n"); foreach (QString stacktrace, stacktraces) { qDebug() << stacktrace; } qDebug() << "------------------------"; }