Merge pull request #2864 from matrix-org/dbkr/logging_for_7769

Logging tweaks
pull/21833/head
David Baker 2019-04-02 13:34:20 +01:00 committed by GitHub
commit ed03a92712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class MatrixClientPeg {
await this.matrixClient.initCrypto(); await this.matrixClient.initCrypto();
} }
} catch (e) { } catch (e) {
if (e.name === 'InvalidCryptoStoreError') { if (e && e.name === 'InvalidCryptoStoreError') {
// The js-sdk found a crypto DB too new for it to use // The js-sdk found a crypto DB too new for it to use
const CryptoStoreTooNewDialog = const CryptoStoreTooNewDialog =
sdk.getComponent("views.dialogs.CryptoStoreTooNewDialog"); sdk.getComponent("views.dialogs.CryptoStoreTooNewDialog");
@ -130,7 +130,7 @@ class MatrixClientPeg {
} }
// this can happen for a number of reasons, the most likely being // this can happen for a number of reasons, the most likely being
// that the olm library was missing. It's not fatal. // that the olm library was missing. It's not fatal.
console.warn("Unable to initialise e2e: " + e); console.warn("Unable to initialise e2e", e);
} }
const opts = utils.deepCopy(this.opts); const opts = utils.deepCopy(this.opts);