mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
nicer error messages when decrypting with a worker
This commit is contained in:
parent
624d341bc6
commit
becdf656a4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user