mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 19:18:44 +02:00
Fix JS exception messages formatting
This commit is contained in:
parent
49efd8ad42
commit
b67b17d3c0
1 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ QString encodeEntityIdIntoEntityUrl(const QString& url, const QString& entityID)
|
||||||
|
|
||||||
QString ScriptEngine::logException(const QScriptValue& exception) {
|
QString ScriptEngine::logException(const QScriptValue& exception) {
|
||||||
auto message = formatException(exception);
|
auto message = formatException(exception);
|
||||||
scriptErrorMessage(qPrintable(message));
|
scriptErrorMessage(message);
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -453,7 +453,7 @@ void ScriptEngine::loadURL(const QUrl& scriptURL, bool reload) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptEngine::scriptErrorMessage(const QString& message) {
|
void ScriptEngine::scriptErrorMessage(const QString& message) {
|
||||||
qCCritical(scriptengine) << message;
|
qCCritical(scriptengine) << qPrintable(message);
|
||||||
emit errorMessage(message);
|
emit errorMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue