mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
log errors during session load
This commit is contained in:
parent
cfa011a317
commit
5a12904cc3
@ -63,8 +63,12 @@ export class SessionLoadViewModel extends ViewModel {
|
|||||||
if (loadStatus === LoadStatus.FirstSync || loadStatus === LoadStatus.Ready) {
|
if (loadStatus === LoadStatus.FirstSync || loadStatus === LoadStatus.Ready) {
|
||||||
this._sessionCallback(this._sessionContainer);
|
this._sessionCallback(this._sessionContainer);
|
||||||
}
|
}
|
||||||
|
if (this._sessionContainer.loadError) {
|
||||||
|
console.error("session load error", this._sessionContainer.loadError);
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._error = err;
|
this._error = err;
|
||||||
|
console.error("error thrown during session load", err.stack);
|
||||||
} finally {
|
} finally {
|
||||||
this._loading = false;
|
this._loading = false;
|
||||||
// loadLabel in case of sc.loadError also gets updated through this
|
// loadLabel in case of sc.loadError also gets updated through this
|
||||||
|
Loading…
Reference in New Issue
Block a user