nicer error messages when decrypting with a worker

This commit is contained in:
Bruno Windels 2020-09-25 16:52:26 +02:00
parent 624d341bc6
commit becdf656a4

View file

@ -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();
}