Fix decrypt error handling
This rejection-handler was resolving its promise rather than allowing the rejection to bubble up.
This commit is contained in:
parent
f8ae5556d9
commit
66ae3689c1
2 changed files with 2 additions and 0 deletions
|
@ -39595,6 +39595,7 @@ function generateKeys(count, progressCallback) {
|
|||
ev.error = error;
|
||||
ev.proto = envelope;
|
||||
this.target.dispatchEvent(ev);
|
||||
throw error; // reject this promise
|
||||
}.bind(this));
|
||||
},
|
||||
handleSentMessage: function(destination, timestamp, message) {
|
||||
|
|
|
@ -99,6 +99,7 @@
|
|||
ev.error = error;
|
||||
ev.proto = envelope;
|
||||
this.target.dispatchEvent(ev);
|
||||
throw error; // reject this promise
|
||||
}.bind(this));
|
||||
},
|
||||
handleSentMessage: function(destination, timestamp, message) {
|
||||
|
|
Loading…
Add table
Reference in a new issue