mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 15:34:05 +02:00
CR round 2
This commit is contained in:
parent
142dfab9ac
commit
e0ca535853
2 changed files with 4 additions and 4 deletions
|
@ -418,10 +418,10 @@ void ScriptEngine::waitTillDoneRunning() {
|
|||
workerThread->quit();
|
||||
|
||||
if (isEvaluating()) {
|
||||
qCWarning(scriptengine) << "Script Engine has been running too long, aborting.";
|
||||
qCWarning(scriptengine) << "Script Engine has been running too long, aborting:" << getFilename();
|
||||
abortEvaluation();
|
||||
} else {
|
||||
qCWarning(scriptengine) << "Script Engine has been running too long, throwing.";
|
||||
qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename();
|
||||
auto context = currentContext();
|
||||
if (context) {
|
||||
context->throwError("Timed out during shutdown");
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
// test module method exception being thrown within main constructor
|
||||
(function() {
|
||||
var apiMethod = Script.require('../exceptions/exceptionInFunction.js');
|
||||
print("apiMethod", apiMethod);
|
||||
print(Script.resolvePath(''), "apiMethod", apiMethod);
|
||||
// this next line throws from within apiMethod
|
||||
print(apiMethod());
|
||||
return {
|
||||
preload: function(uuid) {
|
||||
print("entityConstructorAPIException::preload -- never seen --", uuid);
|
||||
print("entityConstructorAPIException::preload -- never seen --", uuid, Script.resolvePath(''));
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue