Include stack information for errors caught on another thread.

This commit is contained in:
Joseph Cloutier
2024-04-02 03:43:08 -04:00
parent 83db8d8939
commit c50c30353a

View File

@@ -400,7 +400,7 @@ class ThreadPool extends WorkOutput
event.job.doWork.dispatch(event.job.state, output); event.job.doWork.dispatch(event.job.state, output);
} }
} }
catch (e:Dynamic) catch (e:#if (haxe_ver >= 4.1) haxe.Exception #else Dynamic #end)
{ {
output.sendError(e); output.sendError(e);
} }
@@ -494,7 +494,7 @@ class ThreadPool extends WorkOutput
} }
while (!__jobComplete.value && timeElapsed < __workPerFrame); while (!__jobComplete.value && timeElapsed < __workPerFrame);
} }
catch (e:Dynamic) catch (e:#if (haxe_ver >= 4.1) haxe.Exception #else Dynamic #end)
{ {
sendError(e); sendError(e);
} }