diff --git a/src/utils/WorkerPool.js b/src/utils/WorkerPool.js index 56feaf8c..2f0e89b8 100644 --- a/src/utils/WorkerPool.js +++ b/src/utils/WorkerPool.js @@ -103,7 +103,9 @@ export class WorkerPool { if (message.type === "success") { request._resolve(message.payload); } else if (message.type === "error") { - request._reject(new Error(message.stack)); + const err = new Error(message.message); + err.stack = message.stack; + request._reject(err); } request._dispose(); }