Fix decrypt error handling

This rejection-handler was resolving its promise rather than allowing
the rejection to bubble up.
This commit is contained in:
lilia 2015-07-06 12:45:29 -07:00
parent f8ae5556d9
commit 66ae3689c1
2 changed files with 2 additions and 0 deletions

View file

@ -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) {

View file

@ -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) {