CR round 2

This commit is contained in:
Zach Fox 2018-11-08 10:08:42 -08:00
parent 142dfab9ac
commit e0ca535853
2 changed files with 4 additions and 4 deletions

View file

@ -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");

View file

@ -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(''));
},
};
});