Merge pull request #659 from peitschie/log-fixup

Log the stack trace when a LoadingQueue task throws an error
This commit is contained in:
Philip Peitsch
2014-06-18 19:43:09 +10:00
+2 -2
View File
@@ -46,8 +46,8 @@
runtime.setTimeout(function () {
try {
task();
} catch (/**@type{*}*/e) {
runtime.log(String(e));
} catch (/**@type{Error}*/e) {
runtime.log(String(e) + "\n" + e.stack);
}
taskRunning = false;
if (queue.length > 0) {