Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 5 files). Show all
Unified · Split
| @@ -145,17 +145,6 @@ QString encodeEntityIdIntoEntityUrl(const QString& url, const QString& entityID) · 144 unmodified lines | |||
| 145 | return url + " [EntityID:" + entityID + "]"; | 145 | return url + " [EntityID:" + entityID + "]"; |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | void ScriptEngine::logConsoleException(QString message) { | ||
| 149 | this->raiseConsoleException(this->makeError(message)); | ||
| 150 | } | ||
| 151 | |||
| 152 | QString ScriptEngine::logTraceException() { | ||
| 153 | QScriptValue value = this->raiseConsoleTraceException(this->makeError("")); | ||
| 154 | auto trace = formatTrace(value, _enableExtendedJSExceptions.get()); | ||
| 155 | scriptInfoMessage(trace); | ||
| 156 | return trace; | ||
| 157 | } | ||
| 158 | |||
| 159 | QString ScriptEngine::logException(const QScriptValue& exception) { | 148 | QString ScriptEngine::logException(const QScriptValue& exception) { |
| 160 | auto message = formatException(exception, _enableExtendedJSExceptions.get()); | 149 | auto message = formatException(exception, _enableExtendedJSExceptions.get()); |
| 161 | scriptErrorMessage(message); | 150 | scriptErrorMessage(message); |