mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Logging tweaks
To try & diagnose https://github.com/vector-im/riot-web/issues/7769 Null check on e before looking for the `name` property and log it separately rather than appending it to a string (not that this will help if it's undefined, but it's more useful in general).
This commit is contained in:
parent
b6faaf419c
commit
6e6e748376
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ class MatrixClientPeg {
|
|||
await this.matrixClient.initCrypto();
|
||||
}
|
||||
} catch (e) {
|
||||
if (e.name === 'InvalidCryptoStoreError') {
|
||||
if (e && e.name === 'InvalidCryptoStoreError') {
|
||||
// The js-sdk found a crypto DB too new for it to use
|
||||
const CryptoStoreTooNewDialog =
|
||||
sdk.getComponent("views.dialogs.CryptoStoreTooNewDialog");
|
||||
|
@ -130,7 +130,7 @@ class MatrixClientPeg {
|
|||
}
|
||||
// this can happen for a number of reasons, the most likely being
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue