forked from mystiq/hydrogen-web
nicer error messages when decrypting with a worker
This commit is contained in:
parent
624d341bc6
commit
becdf656a4
1 changed files with 3 additions and 1 deletions
|
@ -103,7 +103,9 @@ export class WorkerPool {
|
||||||
if (message.type === "success") {
|
if (message.type === "success") {
|
||||||
request._resolve(message.payload);
|
request._resolve(message.payload);
|
||||||
} else if (message.type === "error") {
|
} 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();
|
request._dispose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue