mirror of
https://github.com/webodf/WebODF.git
synced 2026-12-01 16:56:05 +01:00
Merge pull request #659 from peitschie/log-fixup
Log the stack trace when a LoadingQueue task throws an error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user