From c50c30353a28b8dc52997e8fa73d4fb9739d7f50 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Tue, 2 Apr 2024 03:43:08 -0400 Subject: [PATCH] Include stack information for errors caught on another thread. --- src/lime/system/ThreadPool.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lime/system/ThreadPool.hx b/src/lime/system/ThreadPool.hx index f0ce2cfcc..abb35f683 100644 --- a/src/lime/system/ThreadPool.hx +++ b/src/lime/system/ThreadPool.hx @@ -400,7 +400,7 @@ class ThreadPool extends WorkOutput 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); } @@ -494,7 +494,7 @@ class ThreadPool extends WorkOutput } while (!__jobComplete.value && timeElapsed < __workPerFrame); } - catch (e:Dynamic) + catch (e:#if (haxe_ver >= 4.1) haxe.Exception #else Dynamic #end) { sendError(e); }