1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

If a key upload fails, throw an error and emit an event (#1254)

This commit is contained in:
Zoe
2020-03-16 10:24:31 +00:00
committed by GitHub
parent 758e12d6dd
commit 68cebc7ff9
2 changed files with 109 additions and 27 deletions

View File

@@ -44,3 +44,10 @@ InvalidCryptoStoreError.prototype = Object.create(Error.prototype, {
},
});
Reflect.setPrototypeOf(InvalidCryptoStoreError, Error);
export class KeySignatureUploadError extends Error {
constructor(message, value) {
super(message);
this.value = value;
}
}